BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
selectIndex(i: number) {
this.chart.selectedDataIndexes = [{series: 0, point: i}];
this.chart.refresh();
// select element on index i
} |
Initial Rendering |
After Button Click |
|
|
Hello,
The refresh method causes the re-rendering of the whole component that makes the UX pretty bad.
Are there any plans to improve this?
My requirement is to change the selection run-time everytime the user clicks an item at the grid so re-rendering the chart is pretty bad on my case.
Is there any workaround that will not the component to re-render?
Thank you.
Hi Amalia,
Greetings from Syncfusion.
We suggest upgrading your package to the latest version (v26.2.10) to resolve the reported issue. In this version, the chart renders correctly without needing to call the refresh method. We have created an Angular application using this latest version to demonstrate the same. Please find the below stckblitz link for your reference.
Sample link: https://stackblitz.com/edit/angular-4pwgzf-krv4ly?file=app.component.html
Code Snippet:
selectIndex(i: number) { this.chart.selectedDataIndexes = [{series: 0, point: i}]; // select element on index i } |
Screenshot:
Initial rendering:
After clicking on CLICK button:
Kindly revert us if you have any concerns.
Regards,
Swetha