Selecting data points in the chart

Article ID: 2311
Last updated: 30 May, 2018
Article ID: 2311
Last updated: 30 May, 2018
Revision: 3
Views: 504
Posted: 18 Jun, 2010
by Dean J.
Updated: 30 May, 2018
by Gargani A.

Question

How can I select data points in my chart?

Answer

This sample illustrates an implementation of a chart select interactor - IlvChartSelectInteractor.

You can add a listener to the select interactor to retrieve the Data Window information within the listener and draw a selection data window around the selected points, but in the provided sample, the Data Window information management is let to the interactor.

To do so, you should build an interaction event to be captured when the interaction is done by firing an interaction event to a newly created subclass of ChartInteractionEvent in order to get the selected points.

Then, you can retrieve the selected points and / or corresponding bounds from the subclass of ChartInteractionEvent.

You can download here the sample which illustrates this : select-interactor.zip

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2311
Last updated: 30 May, 2018
Revision: 3
Views: 504
Posted: 18 Jun, 2010 by Dean J.
Updated: 30 May, 2018 by Gargani A.
Also listed in


Others in this category