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.


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
public event PostDataProcessingEventHandler PostDataProcessing()


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(
   chartdatagrid.DataSource =
new DataView(dt);

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)
End Sub 'OnPostDataProcessing


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

© 2019 All Rights Reserved.