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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Retrieving a list of selected points

Thread ID:

Created:

Updated:

Platform:

Replies:

150131 Dec 21,2019 03:29 PM UTC Dec 31,2019 05:51 AM UTC Blazor 3
loading
Tags: Charts
softlan
Asked On December 21, 2019 03:29 PM UTC

Hello.

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

Please advise, thanks.

Durga Gopalakrishnan [Syncfusion]
Replied On 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 
<div> 
<EjsChart @ref="chart" SelectionMode="SelectionMode.Point" IsMultiSelect="true"> 
     <ChartEvents OnSelectionComplete="SelectedIndex"></ChartEvents> 
</EjsChart> 
</div> 
@code{ 
    EjsChart chart = new EjsChart(); 
    public void SelectedIndex(ISelectionCompleteEventArgs Arguments) 
    { 
        var data = Arguments.SelectedDataValues; 
        selectedData = JsonConvert.DeserializeObject<List<SelectedData>>(data.ToString()); 
        Console.WriteLine(selectedData); 
    } 
} 
 
Screenshot 
 
Sample 
 
Kindly revert us, if you have any concerns. 
 
Regards, 
Durga

softlan
Replied On December 26, 2019 09:23 AM UTC

This is what i need.
Thanks.

Srihari Muthukaruppan [Syncfusion]
Replied On 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.   

Thanks,   
Srihari M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon