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

Modify Style for Y Axis

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Charles-Henri
Top achievements
Rank 1
Charles-Henri asked on 03 May 2011, 03:56 PM
Hi,

Actually I've "mil" for Millions on Chart axis, how could i change it and set just "M" ?

Find ScreeShot in attachment for more details.

Regards

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 06 May 2011, 08:56 AM
Hello Charles-Henri,

You can change the default label format and the item label format as follows:
<telerik:RadChart x:Name="RadChart1">
    <telerik:RadChart.SeriesMappings>
        <telerik:SeriesMapping >
            <telerik:SeriesMapping.SeriesDefinition>
                <telerik:BarSeriesDefinition ItemLabelFormat="#Y{0,,.0#} M" />
            </telerik:SeriesMapping.SeriesDefinition>
            <telerik:ItemMapping FieldName="PurchasePrice" DataPointMember="YValue" />
        </telerik:SeriesMapping>
    </telerik:RadChart.SeriesMappings>
    <telerik:RadChart.DefaultView>
        <telerik:ChartDefaultView>
            <telerik:ChartDefaultView.ChartArea>
                <telerik:ChartArea LegendName="Legend1">
                    <telerik:ChartArea.AxisY>
                        <telerik:AxisY DefaultLabelFormat="#VAL{0,,.0#} M" />
                    </telerik:ChartArea.AxisY>
                </telerik:ChartArea>
            </telerik:ChartDefaultView.ChartArea>
            <telerik:ChartDefaultView.ChartLegend>
                <telerik:ChartLegend x:Name="Legend1"  />
            </telerik:ChartDefaultView.ChartLegend>
        </telerik:ChartDefaultView>
    </telerik:RadChart.DefaultView>
</telerik:RadChart>
I hope this helps.

Regards,
Sia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Charles-Henri
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or