More space for chart labels

5 posts, 0 answers
  1. Sarah
    Sarah avatar
    6 posts
    Member since:
    Mar 2008

    Posted 02 Apr 2010 Link to this post

    Hello,
    I am rotating my labels so they do not overlap, but now they overlap the chart itself.  Is there a way to increase the space allotted for the labels?

    It is even worse when I have my legend visible.  Suggestions?

    Please see my attached images.

    thanks,
    Sarah
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 07 Apr 2010 Link to this post

    Hi Sarah,

    Have you tried using the AutoLayout feature?

    Greetings,
    Vladimir Milev
    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.
  3. Dheepak Ramaswamy
    Dheepak Ramaswamy avatar
    2 posts
    Member since:
    Feb 2010

    Posted 27 Apr 2010 Link to this post

    Hi Vlad,

    I have the exact same problem. I created a custom style for the item labels and I am rotating the labels. Unfortunately, it overlaps with the x axis line. I searched for the AutoLayout feature but it does not seem to be available for Silverlight RadChart. 

    <
                chart.DefaultView.ChartArea.AxisX.AxisStyles.ItemLabelStyle = this.BHCharts.Resources["AxisXStyleTextBlock"] as Style;
    >

    <Style x:Key="AxisXStyleTextBlock" TargetType="TextBlock">
             <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
             <Setter Property="RenderTransform">
             <Setter.Value>
             <TransformGroup>        
             <RotateTransform Angle="45" CenterX="0" CenterY="0"/>        
             </TransformGroup>
             </Setter.Value>
             </Setter>
             <Setter Property="FontSize" Value="8"/>
                <Setter Property="Width" Value="130"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="TextAlignment" Value="Center"/>
    </Style>
  4. MATT CANTANDO
    MATT  CANTANDO avatar
    2 posts
    Member since:
    Feb 2010

    Posted 28 Apr 2010 Link to this post

    Hi,

    Is there a solution to this problem? How can I set the height of the X axis panel? How do I use PlotAreaAxisXStyle and PlotAreaAxisXPanel?

    Thanks
  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 30 Apr 2010 Link to this post

    Hi MATT CANTANDO,

    The problem described in the screenshot should never happen. Silverlight automatically handles container layout. Are you using some custom styles setting height/width or alignment of labels?

    Can you send us a project where this behavior is reproduced? Thanks a lot in advance!

    Kind regards,
    Vladimir Milev
    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