Accumulation Chart - Legend - Hide all data points

Hi,

We have a Pie Chart with lots of data points (about 50). Is there a way to programmtically disable all of them so users can select which ones to view? ie. like clicking the legend to hit an individual one



1 Reply 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team June 13, 2021 02:30 PM UTC

Hi Declan, 

We have an option to select a specific point at initial rendering using AccumulationChartSelectedDataIndex property. You can select any point after chart has been rendered. Please check with the below snippet and screenshot. 

Code Snippet : 

<SfAccumulationChart SelectionMode="AccumulationSelectionMode.Point"> 
     <AccumulationChartSelectedDataIndexes> 
        <AccumulationChartSelectedDataIndex Series="0" Point="10"> 
        </AccumulationChartSelectedDataIndex> 
    </AccumulationChartSelectedDataIndexes> 
</SfAccumulationChart> 

Screenshot : 

 

Kindly revert us if you have any concerns. 

Regards,  
Durga G

Marked as answer
Loader.
Up arrow icon