Numbers in y axis with strange format

4 posts, 0 answers
  1. Mathias
    Mathias avatar
    9 posts
    Member since:
    Jun 2013

    Posted 26 Feb 2014 Link to this post

    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
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 03 Mar 2014 Link to this post

    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
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mathias
    Mathias avatar
    9 posts
    Member since:
    Jun 2013

    Posted 03 Mar 2014 Link to this post

    Hi Stanimir,

    Here the attachment.

    Thanks!
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 05 Mar 2014 Link to this post

    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:
    <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!

Back to Top