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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't select a point in series in component source code

Thread ID:





146416 Aug 2,2019 02:53 PM UTC Aug 5,2019 05:22 AM UTC Angular - EJ 2 1
Tags: Chart
Akshay Rana
Asked On August 2, 2019 02:53 PM UTC

Is there any way to select a point of series in your component.

"selectedDataIndexes" does not work after the chart has rendered.

Example: select a point by index on button click :

Kalaimathi Chellaiah [Syncfusion]
Replied On August 5, 2019 05:22 AM UTC

Hi Akshay, 
Greetings from Syncfusion. 
We have analyzed your query. From that we would like to let you know that the series not refreshed when we used selectedDataIndex property through button click. That’s why the problem is occurred. By calling chart refresh() method, you can resolve this problem. We have modified the attached sample. Now point selection is working fine as you expect. Please find below, 
Code Snippet: 
selectIndex(i: number) { 
    this.chart.selectedDataIndexes = [{series: 0, point: i}]; 
    // select element on index i  
Initial Rendering 
After Button Click 
Please let me know if you have any queries. 



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