Is it possible to prevent legend toggle of the last series in a chart?

Hello,

I have a chart with 3 series in it. All of the series are shown in the legend of the chart and allowed to be toggled on and off. 

Is it possible to prevent from the last visible series to toggled off?

I'm adding an example main to simulate what I'm asking you about and also a video showing the current behavior,

the files contain the main.ts file and the pubspec.yaml used for the demo shown in the video.


Thank you,

Daniel.


Attachment: ChartFiles_9dc1a3d1.7z

5 Replies 1 reply marked as answer

SK Sriram Kiran Senthilkumar Syncfusion Team November 25, 2022 02:34 AM UTC

Hi Daniel,


We are validating your requirement at our end and will update further details in one business day.


Regards,

Sriram Kiran



LP Lokesh Palani Syncfusion Team November 28, 2022 04:27 PM UTC

Hi Daniel,


We are validating your requirement at our end and will update further details in one business day.


Regards,

Lokesh Palani



LP Lokesh Palani Syncfusion Team November 29, 2022 10:55 AM UTC

Hi Daniel,


Greetings from Syncfusion.


We don't have direct support for achieving your requirement. However, the requirement can be met by clearing the toggled series dataSource. We have shared a sample for your reference below.


Regards,

Lokesh Palani.


Attachment: chart_179022__4e8c78f3.zip

Marked as answer

DS Daniel Szuster replied to Lokesh Palani November 29, 2022 11:14 AM UTC

Hi Lokesh,

Thanks for the replay, this is what I was looking for thank you.



LP Lokesh Palani Syncfusion Team November 30, 2022 06:36 AM UTC

Hi Daniel,


Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.


Regards,

Lokesh Palani.


Loader.
Up arrow icon