This is a migrated thread and some comments may be shown as answers.

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

1 Answer 19 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul Brause
Top achievements
Rank 1
Paul Brause asked on 24 Apr 2013, 07:19 PM

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>

1 Answer, 1 is accepted

Sort by
0
Paul Brause
Top achievements
Rank 1
answered on 24 Apr 2013, 08:01 PM
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!
Tags
Chart
Asked by
Paul Brause
Top achievements
Rank 1
Answers by
Paul Brause
Top achievements
Rank 1
Share this question
or