Chart labels without font get resolved twice

1 Answer 7 Views
Charts
Jay
Top achievements
Rank 1
Veteran
Jay asked on 05 Jan 2022, 03:30 PM

I ran into a error when trying to use a template to provide an axis label. After digging into it further, it appears that the chart resolves its axis labels twice when there is no font associated with the label, and the first time through the series data isn't fully populated, and the value that is passed in is not the final value.

Here is a dojo for reference. If you run this, the console will have messages where the series data element is undefined and for one set of values, followed by messages where it is defined with the correct values. If you then uncomment the font line in the valueAxis label definition and run it again, the console will only have messages where the series data element is defined.

I don't know if it's a bug, but it certainly caught me by surprise.

Nikolay
Telerik team
commented on 10 Jan 2022, 11:46 AM

Hi Jay,

Could you please double-check the shared Dojo as I do not see any console errors upon running it?

Regards,

Nikolay

Jay
Top achievements
Rank 1
Veteran
commented on 10 Jan 2022, 03:13 PM

What I'm referring to are the messages below in the console. The "no data" messages are the ones where it is trying to get the axis label  where the series data element is undefined and the values being passed in aren't in the series. These are followed by the "data"  messages where the series data element is defined and the values are in the series. If you then uncomment the label font definition and run it again, you will only get the "data" messages, the "no data" messages won't occur.

 

 

Nikolay
Telerik team
commented on 13 Jan 2022, 01:45 PM

Hi Jay,

Thank you for clarifying the case.

I will investigate further and get back to you shortly.

Regards,

Nikolay

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 14 Jan 2022, 07:46 AM

Hi Jay,

I confirm this is a bug with the Chart which I have logged and its progress you can track at the following links:

As a token of gratitude for reporting this, I added some Telerik points to your account.

Let me knwo if you have any questions.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Charts
Asked by
Jay
Top achievements
Rank 1
Veteran
Answers by
Nikolay
Telerik team
Share this question
or