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
close icon

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 24, 2022 09:34 PM

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 11:27 AM

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 05:55 AM

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 06:14 AM

Hi Lokesh,

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



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

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.
Live Chat Icon For mobile
Up arrow icon