Hello!
The numbers on the y axis of our HtmlChart are being formattet very strange (see attachement).
This only happens on one client where the Windows language is set to English. On the other clients where the Windows version is German, the numbers are being formatted correct (0.2, 0.4, 0.6 and so on).
Could the language be the reason for this problem? And how can I fix it?
Thank you very much!
Best regards,
Mathias
The numbers on the y axis of our HtmlChart are being formattet very strange (see attachement).
This only happens on one client where the Windows language is set to English. On the other clients where the Windows version is German, the numbers are being formatted correct (0.2, 0.4, 0.6 and so on).
Could the language be the reason for this problem? And how can I fix it?
Thank you very much!
Best regards,
Mathias
3 Answers, 1 is accepted
0
Hi Mathias,
It seams that there was a problem with you attachment. Could you attach the image where we can see the problem again?
Regards,
Stanimir
Telerik
It seams that there was a problem with you attachment. Could you attach the image where we can see the problem again?
Regards,
Stanimir
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Mathias
Top achievements
Rank 1
answered on 03 Mar 2014, 12:46 PM
Hi Stanimir,
Here the attachment.
Thanks!
Here the attachment.
Thanks!
0
Hello Mathias,
Thank you for providing us the snap shot.
We are not aware of the mentioned y-axis labels format string. I have tried reproducing it by setting the "en-US" culture to the .aspx page but to no avail. You can watch a short video test in the attached archive and then tell me what I am missing.
If you are not using the latest official version of Telerik UI - 2014.1.225, does upgrading to it resolve the issue?
If the above step, however, is not helpful could you please try to reproduce the issue with the attached VS example and then tell us what changes you have made, so that we can make an investigation locally?
For the time being you can manually set an appropriate format string for the y-axis labels. For example:
You may also find useful Formatting Numbers help article.
Regards,
Danail Vasilev
Telerik
Thank you for providing us the snap shot.
We are not aware of the mentioned y-axis labels format string. I have tried reproducing it by setting the "en-US" culture to the .aspx page but to no avail. You can watch a short video test in the attached archive and then tell me what I am missing.
If you are not using the latest official version of Telerik UI - 2014.1.225, does upgrading to it resolve the issue?
If the above step, however, is not helpful could you please try to reproduce the issue with the attached VS example and then tell us what changes you have made, so that we can make an investigation locally?
For the time being you can manually set an appropriate format string for the y-axis labels. For example:
<
telerik:RadHtmlChart
runat
=
"server"
ID
=
"RadHtmlChart1"
Width
=
"600"
Height
=
"400"
>
<
PlotArea
>
<
Series
>
<
telerik:LineSeries
Name
=
"Series 1"
>
<
SeriesItems
>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
<
telerik:CategorySeriesItem
Y
=
"1"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
</
SeriesItems
>
</
telerik:LineSeries
>
<
telerik:LineSeries
Name
=
"Series 2"
>
<
SeriesItems
>
<
telerik:CategorySeriesItem
Y
=
"1"
/>
<
telerik:CategorySeriesItem
Y
=
"1"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
<
telerik:CategorySeriesItem
Y
=
"0"
/>
</
SeriesItems
>
</
telerik:LineSeries
>
</
Series
>
<
YAxis
>
<
LabelsAppearance
DataFormatString
=
"N2"
></
LabelsAppearance
>
</
YAxis
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
You may also find useful Formatting Numbers help article.
Regards,
Danail Vasilev
Telerik
DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!