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

Wrong position for long Label of XAxis

1 Answer 37 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Wirat Chinnan
Top achievements
Rank 1
Wirat Chinnan asked on 29 Aug 2010, 10:06 AM
XAxis Label is come from data in database. In case of long data, chart will put XAxis Label to the wrong position [see picture]. How do I solved this problem?

Below is XAML. (Data is generate using SampleData).

<UserControl
    x:Class="SilverlightApplication1.MainPage"
    Width="640" Height="480">
 
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <telerik:RadChart Content="RadChart" ItemsSource="{Binding Path=Collection,Mode=OneWay}" >
            <telerik:RadChart.SeriesMappings>
                <telerik:SeriesMapping >
                    <telerik:SeriesMapping.ItemMappings>
                        <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name" />
                        <telerik:ItemMapping DataPointMember="YValue" FieldName="Value" />
                    </telerik:SeriesMapping.ItemMappings>                                      
                </telerik:SeriesMapping>
            </telerik:RadChart.SeriesMappings>
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>          
                   <telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartArea>
                           <telerik:ChartArea.AxisX>
                               <telerik:AxisX AutoRange="True"
                                    LabelRotationAngle="45">
                               </telerik:AxisX>
                           </telerik:ChartArea.AxisX>
                       </telerik:ChartArea>
                   </telerik:ChartDefaultView.ChartArea>
               </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
        </telerik:RadChart>
    </Grid>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 01 Sep 2010, 05:39 PM
Hello Wirat Chinnan,

Unfortunately, at present time there is no workaround for this issue. The problem is that the axis labels are being rotated around their center points(should be the left-center point). Our development team is already aware of this issue but no specific time frame for its resolution can be committed. You can review the status of the issue here.

Please, accept our apologies for this inconvenience.

Greetings,
Ryan
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
Wirat Chinnan
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or