This question is locked. New answers and comments are not allowed.
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
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
4 Answers, 1 is accepted
0
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.
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.
0
Dheepak Ramaswamy
Top achievements
Rank 1
answered on 27 Apr 2010, 08:25 PM
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>
0
MATT CANTANDO
Top achievements
Rank 1
answered on 28 Apr 2010, 05:44 AM
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
0
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.
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.