Wrong position for long Label of XAxis

2 posts, 0 answers
  1. Wirat Chinnan
    Wirat Chinnan avatar
    13 posts
    Member since:
    Aug 2009

    Posted 29 Aug 2010 Link to this post

    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>
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 01 Sep 2010 Link to this post

    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
Back to Top