We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Retrieving a list of selected points


I have a question: how can I get a list of all the selected points on the chart (Column Charts)?

Please advise, thanks.

3 Replies

DG Durga Gopalakrishnan Syncfusion Team December 24, 2019 11:27 AM UTC

Hi Softlan, 
We have analyzed your query. To get the list of selected points, please use OnSelectionComplete event in chart. This event will be triggered after selecting a data point or chart series. We have prepared a sample to display the selected points in table based on your requirement. Please check with the below code snippet and sample. 
Code snippet 
<EjsChart @ref="chart" SelectionMode="SelectionMode.Point" IsMultiSelect="true"> 
     <ChartEvents OnSelectionComplete="SelectedIndex"></ChartEvents> 
    EjsChart chart = new EjsChart(); 
    public void SelectedIndex(ISelectionCompleteEventArgs Arguments) 
        var data = Arguments.SelectedDataValues; 
        selectedData = JsonConvert.DeserializeObject<List<SelectedData>>(data.ToString()); 
Kindly revert us, if you have any concerns. 

SO softlan December 26, 2019 09:23 AM UTC

This is what i need.

SM Srihari Muthukaruppan Syncfusion Team December 31, 2019 05:51 AM UTC

Hi softlan,  

Most welcome. Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   

Srihari M 

Live Chat Icon For mobile
Up arrow icon