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

2 Charts , 1 chart with multiple axis

2 Answers 96 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Laurent Gautier
Top achievements
Rank 1
Laurent Gautier asked on 15 Nov 2010, 03:45 PM
Hello,

I have two  charts in my project. The first one have multiple Y axis and the X axis has Date Values.
The second chart has the same period dates on X axis.
Because of additional Axis on the first chart, the X axis length on the two charts are different. Is it possible to have the same length for X axis on second chart (top of the page).
I hope I am clear enough.
Thank you for your help.

Laurent  

2 Answers, 1 is accepted

Sort by
0
Folvort
Top achievements
Rank 1
answered on 17 Nov 2010, 06:50 PM
Hi.

I have similar problem.
Will any answer?
0
Yavor
Telerik team
answered on 18 Nov 2010, 09:03 AM
Hello Folvort,

Indeed, when a second Y axis is used, the X-Axis will be shorter, in order to accommodate the additional Axis. In this case, you can add a padding to the chart area of the chart without an additional YAxis. This may look something like this:

<telerikChart:RadChart VerticalAlignment="Top" Grid.Row="1">
<telerikChart:RadChart.DefaultView>
<telerikCharting:ChartDefaultView>
<telerikCharting:ChartDefaultView.ChartTitle>
<telerikCharting:ChartTitle Content="Year 2009" HorizontalAlignment="Center"/>
</telerikCharting:ChartDefaultView.ChartTitle>
<telerikCharting:ChartDefaultView.ChartArea>
<telerikCharting:ChartArea Padding="0, 0, 70, 0" >
<telerikCharting:ChartArea.DataSeries>

The resuly is demonstrated in the screenshot attached to this message - both X-axes have similar width.
I hope this information helps.

Best wishes,
Yavor
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
Laurent Gautier
Top achievements
Rank 1
Answers by
Folvort
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or