I am using the (Win chart) Composite chart which consists of two layers first layer consists of step area chart and the second layer consists of stack area chart. I want a click event for where ever i mouse click in the layers and i want to display that clicked bar data value. what type of event i want to choose and also please send the sample vb code for click event.
Regards,
Suresh
Click events will only be raised when clicking on the data points. In case of the line/area charts this means that only the vertices are clickable. The segments between points and the filled area do not respond to click events.
Yes , You are right its works with barchart when i click anywhere in chart. But its not working with areachart/linechart if i click on filled area instead of datapoint.
the ChartDataClicked event should be raised whenever the mouse is clicked on chart data, like a bar in a bar chart. this happens regardless of how the chart is databound. i don't recall ever hearing of a bug that caused this event not to be raised. can you provide some sample code, maybe, if it's still not working on your end?
The chart data event is not working because the i am binding chart through series.. and also the chart data event is also not calling at runtime.. is there any other possible way....
something like this:
Sub UltraChart1_ChartDataClicked(sender As Object, e As ChartDataEventArgs) Handles UltraChart1.ChartDataClicked
Console.WriteLine(e.DataValue);
End Sub