RadChart Y-axis behaves correct in english but not in german phone emulator

2 posts, 0 answers
  1. Paul Brause
    Paul Brause avatar
    10 posts
    Member since:
    Nov 2009

    Posted 24 Apr 2013 Link to this post

    Hello,

    I am having difficulties with a RadCartesianChart control in my Windows Phone 8 Emulator.
    The values on my RadCartesianChart.Vertical Axis are doubls which range from 0 to 1.1!
    In the english Windows Phone Emulator the Y axis Show the correct values.
    When I Switch the Emulator to german the Y axis suddenly Shows values from 0 to 1100!

    The Y-values are obviously Display multiplied per 1000. This seems to be a Problem with the localization.

    Can I do something to make the RadChart behave correct in german?

    I attached one screenshot in german and one screenshot in english localization to see the difference.

    <chart:RadCartesianChart x:Name="MainChart" ManipulationCompleted="MainChart_ManipulationCompleted_1">
    <chart:RadCartesianChart.HorizontalAxis>
            <chart:DateTimeContinuousAxis  LabelFitMode="Rotate"
                           LabelFormat="hh" LabelInterval="8" LabelOffset="2"/>
        </chart:RadCartesianChart.HorizontalAxis>
        <chart:RadCartesianChart.VerticalAxis>
            <chart:LinearAxis/>
        </chart:RadCartesianChart.VerticalAxis>
        <chart:RadCartesianChart.Series>
            <chart:AreaSeries StrokeThickness="3" Stroke="#FF4571BF">
                <chart:AreaSeries.Fill>
                    <SolidColorBrush Color="#FF71BF45"/>
                </chart:AreaSeries.Fill>
            </chart:AreaSeries>
            <chart:LineSeries StrokeThickness="3" Stroke="#FF7A0707"></chart:LineSeries>
        </chart:RadCartesianChart.Series>
    </chart:RadCartesianChart>
  2. Paul Brause
    Paul Brause avatar
    10 posts
    Member since:
    Nov 2009

    Posted 24 Apr 2013 Link to this post

    Shame on my, it was not the RadChart fault!

    I parsed the double values out of a CSV file and did not use the right decimal separator.
    This way the Double.Parse method did not parse the values correctly in german localization!
  3. DevCraft banner
Back to Top