Completed
Last Updated: 18 Apr 2023 13:58 by ADMIN
Release 4.2.0 (04/26/2023)
Jonty
Created on: 27 Mar 2023 04:49
Category: Charts
Type: Bug Report
3
ChartValueAxisLabels Format String produces incorrect results

Hi,

Just a bug I have found. I have found something similar before with the DateTime format of a category axis.

Please note the single lowercase 't' in the below appears to be being interpreted by the compiler as 'time' identifier (AM or PM). In this case, it is printing on the chart label as 'a'.

<ChartValueAxes>
     <ChartValueAxis AxisCrossingValue="@AxisCrossingValue">
          <ChartValueAxisLabels Format="@("{0}" + " a b c d e f g h i j k l m n o p q r s t u v w x y z")"></ChartValueAxisLabels> 
    </ChartValueAxis>
</ChartValueAxes>


I discovered this as my original unit was 'Count' which was being displayed at runtime on the chart as 'Couna'.
1 comment
ADMIN
Dimo
Posted on: 27 Mar 2023 12:09

Hello Jonty,

Thanks for the detailed report! As it doesn't contain sensitive information, I am directly converting it to a public bug report.

Indeed, I agree with you that the problem may revolve around unexpected date formatting. Probably it's a regression from this fix.

A possible workaround is to use a label template instead of a label format. I hope this is not too much of a hassle...

Regards,
Dimo
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/.