How to hide the legend in a Pie Chart?

1 Answer 19 Views
Charts
Ted
Top achievements
Rank 1
Iron
Iron
Ted asked on 24 May 2024, 04:53 PM | edited on 24 May 2024, 04:53 PM

Hi, I'm not adding a ChartLegend element to a pie chart, but the legend is still showing up to the right of the pie chart? How can I remove the legend entirely from the Pie chart?

 

See here for demo: https://blazorrepl.telerik.com/cSupwSbA500BPvKK06

 

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 29 May 2024, 10:13 AM

Hi Ted,

Thank you for the provided screenshot and runnable sample!

The visibility of the Chart legend can be managed through the Visible parameter of the ChartLegend tag. By design, the Pie Chart displays a legend, with the default value of the parameter set to "true". To change this behavior, define a ChartLegend tag and set the Visible parameter to "false".

To assist you further, I'm sending you back the modified REPL demo with the removed legend.

Regards,
Tsvetomir
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Charts
Asked by
Ted
Top achievements
Rank 1
Iron
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or