How to hide items from the legend?

1 Answer 20 Views
Charts
Hans
Top achievements
Rank 1
Hans asked on 18 Aug 2025, 10:33 AM

I have a chart that shows different data but for same group data. I re-use the color between the area and column series since thay are about the same source data group. This makes my legend report each item tweice, which I do not want.

How can I disable legend item visibility for one series, but keep visibilitie for other series?

 

TIA - Hans

1 Answer, 1 is accepted

Sort by
1
Accepted
Dimo
Telerik team
answered on 19 Aug 2025, 06:16 AM | edited on 19 Aug 2025, 07:18 AM

Hi Hans,

<ChartSeries> has a VisibleInLegend parameter, which you can use.

Another option to hide a legend item is to remove the ChartSeries Name.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Hans
Top achievements
Rank 1
commented on 19 Aug 2025, 07:01 AM | edited

Except for that the property name was "VisibleInLegend" rather than "VisibleInSeries".

This again makes me wornder how I overlooked that.  :s

Anyway,  If you update your post, I'll mark it as "Accepted" - Thx.

 

Dimo
Telerik team
commented on 19 Aug 2025, 07:21 AM

Yes, it's VisibleInLegend. My fingers probably typed without the participation of my brain :) 
Tags
Charts
Asked by
Hans
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or