series labels: { visible: 'false' } still displays label

0 Answers 110 Views
Charts
Jay
Top achievements
Rank 3
Iron
Iron
Veteran
Jay asked on 12 May 2023, 06:52 PM | edited on 16 May 2023, 03:33 PM

TLDR: Never mind, user error

It seems that whether I specify labels: { visible: 'false' } or labels: { visible: 'true' }, the label is always displayed. I would have expected that specifying false would not cause the label to display. Specifying another option, such as labels: { format: '{0:C0}' }, does not cause the label to display.

Here is a dojo demonstrating the issue. Note that both the second and third bars display labels, even though the second bar has visible set to false. The first bar, specifying a format for the label, does not have its labels displayed.

Jay
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 12 May 2023, 06:55 PM

Sigh. Never mind. Too used to quoting stings but not numbers. If I specify it properly as labels: { visible: false }, the labels are not displayed
Nikolay
Telerik team
commented on 17 May 2023, 10:17 AM

Hi Jay,

thank you for the update.

Indeed, boolean values for the components' properties shall not be quoted.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Jay
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or