dotnetCHARTING Send comments on this topic.
PostDataProcessing Event
See Also  Example
dotnetCHARTING Namespace > Chart Class : PostDataProcessing Event


Occurs when the the chart is completed the data processing.

Syntax

Visual Basic (Declaration) 
Public Event PostDataProcessing() As PostDataProcessingEventHandler
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim handler As PostDataProcessingEventHandler
 
AddHandler instance.PostDataProcessing, handler
C# 
public event PostDataProcessingEventHandler PostDataProcessing()

Example

The follwoing sample, get a data table and displays with a datagrid. For complete sample see features/PostDataProcessing.aspx
C#Copy Code
//This line should add in Page_Load method
Chart.PostDataProcessing +=new PostDataProcessingEventHandler(OnPostDataProcessing);

//The method handling the PostDataProcessing event
void OnPostDataProcessing(Object sender)
{
   DataTable dt = Chart.SeriesCollection.GetProcessedDataTable(
"%YValue");
   chartdatagrid.DataSource =
new DataView(dt);
   chartdatagrid.DataBind();

}
    
Visual BasicCopy Code
'This line should add in Page_Load method
AddHandler Chart.PostDataProcessing, AddressOf OnPostDataProcessing


'The method handling the PostDataProcessing event
Sub OnPostDataProcessing(sender As [Object])
   Dim dt As DataTable = Chart.SeriesCollection.GetProcessedDataTable("%YValue")
   chartdatagrid.DataSource = New DataView(dt)
   chartdatagrid.DataBind()
End Sub 'OnPostDataProcessing

Remarks

This event is very useful for customizing and displaying the processed data specially when using SplitByLimit which generates more than one series from a series.

See Also

© 2018 All Rights Reserved.