5 Answers, 1 is accepted
0
Accepted
Hi Jan,
You can change the position of the YAxes by re-templating the ChartArea and setting the custom style to the RadChart.DefaultView.ChartArea.Style. By default the structure of our ChartArea is a grid with three columns and three rows:
In the attached file you can find an example how to change the position of the YAxes. For additional information on Multiple Y axes, please refer to the following online resources:
http://www.telerik.com/help/silverlight/radchart-features-axes-multiple-y-axes.html
http://demos.telerik.com/silverlight/#Chart/MultipleYAxes
I hope that this helps.
Kind regards,
You can change the position of the YAxes by re-templating the ChartArea and setting the custom style to the RadChart.DefaultView.ChartArea.Style. By default the structure of our ChartArea is a grid with three columns and three rows:
Additional X Axes | ||
Y Axis | PlotArea | Additional Y Axes |
X Axis |
In the attached file you can find an example how to change the position of the YAxes. For additional information on Multiple Y axes, please refer to the following online resources:
http://www.telerik.com/help/silverlight/radchart-features-axes-multiple-y-axes.html
http://demos.telerik.com/silverlight/#Chart/MultipleYAxes
I hope that this helps.
Kind regards,
Polina
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
Jan
Top achievements
Rank 1
answered on 22 Jul 2011, 03:34 PM
Hi Polina,
thank for your reply. I will try it next week.
Is it planned to offer an easier way to change the axes sides?
Thanks,
Jan
thank for your reply. I will try it next week.
Is it planned to offer an easier way to change the axes sides?
Thanks,
Jan
0
Hi Jan,
We'll be glad to know how this works for you.
To your latest question - at this moment we don't have plans to implement such functionality. However I've forwarded your feedback to our developers and they will decide whether and when this will be made for one of our future releases.
All the best,
Evgenia
the Telerik team
We'll be glad to know how this works for you.
To your latest question - at this moment we don't have plans to implement such functionality. However I've forwarded your feedback to our developers and they will decide whether and when this will be made for one of our future releases.
All the best,
Evgenia
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
Jan
Top achievements
Rank 1
answered on 28 Jul 2011, 11:06 AM
Hi Evgenia,
i hope that they will add this in the near future.
I have tried your solution and it does not fit all of my requirements. Attached there are screens of the provided solution and that what i want. The main difference is the orientation of the swapped y axis. Because they are only repositioned, their orientation is reveresed vertically. I want to have some y axes on the left and some on the right side. Each with his own series definition like in the attached example.
Is this possible?
Thanks,
Jan
i hope that they will add this in the near future.
I have tried your solution and it does not fit all of my requirements. Attached there are screens of the provided solution and that what i want. The main difference is the orientation of the swapped y axis. Because they are only repositioned, their orientation is reveresed vertically. I want to have some y axes on the left and some on the right side. Each with his own series definition like in the attached example.
Is this possible?
Thanks,
Jan
0
Hello Jan,
Currently, it is not possible to position the Additional YAxes separated from each other, so that there will be more than one Axis on the left and on the right side of the ChartArea. You can rotate the YAxes and change their orientation by setting the FlowDirection of the AxisY2D and the AdditionalAxes2DContainer to RightToLeft. You will also need to rotate the Titles for the YAxes by retemplating the AxisTitle Style like this:
and set the Style in code-behind like this:
In the attached file you can find the modified example. I hope this helps.
Kind regards,
Currently, it is not possible to position the Additional YAxes separated from each other, so that there will be more than one Axis on the left and on the right side of the ChartArea. You can rotate the YAxes and change their orientation by setting the FlowDirection of the AxisY2D and the AdditionalAxes2DContainer to RightToLeft. You will also need to rotate the Titles for the YAxes by retemplating the AxisTitle Style like this:
<
Style
x:Key
=
"CustomTitle"
TargetType
=
"telerik:AxisTitle"
>
<
Setter
Property
=
"BorderStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"Border"
>
<
Setter
Property
=
"Margin"
Value
=
"0,5,0,0"
/>
<
Setter
Property
=
"CornerRadius"
Value
=
"2"
/>
<
Setter
Property
=
"RenderTransformOrigin"
Value
=
"0.5,0.5"
/>
<
Setter
Property
=
"RenderTransform"
>
<
Setter.Value
>
<
RotateTransform
Angle
=
"180"
/>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Setter.Value
>
</
Setter
>
</
Style
>
and set the Style in code-behind like this:
this
.RadChart1.DefaultView.ChartArea.AxisY.AxisStyles.TitleStyle =
this
.Resources[
"CustomTitle"
]
as
Style;
foreach
(var item
in
RadChart1.DefaultView.ChartArea.AdditionalYAxes)
{
item.AxisStyles.TitleStyle =
this
.Resources[
"CustomTitle"
]
as
Style;
}
In the attached file you can find the modified example. I hope this helps.
Kind regards,
Polina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>