Hi,
1) I need to place the HorizontalAxis Label above the chart. Is that possible?
2) I am trying to change the alignment of both Axis's titles: the HorizontalAxis Title to "left" and the VerticalAxis Title to "bottom" (near Chart's origin). How can I do that?
Could you show me a code example?
Thank you.
4 Answers, 1 is accepted
Let me get straight to your questions:
- I need to place the HorizontalAxis Label above the chart. Is that possible?
I am not sure what you mean by saying that you want to place the HorizontalAxis Label above the axis. Do you mean that you want to position the axis' labels above the plot area. If so, you can move the entire axis by changing its VerticalLocation property to Top.
<
telerik:CategoricalAxis
VerticalLocation
=
"Top"
/>
- I am trying to change the alignment of both Axis's titles: the HorizontalAxis Title to "left" and the VerticalAxis Title to "bottom" (near Chart's origin). How can I do that?
Currently, there is no built-in mechanism for setting the alignment of the chart's axis title. However, you can achieve this with custom code. Basically, you can find the ContentPresenter that holds the axis' title in code and when the chart's layout is updated set the Canvas.Top/Canvas.Left attached property of the presenter to position it at the desired location. I attached a sample project that demonstrates this approach. Please give it a try and let me know if it works for you.
Regards,
Martin
Telerik
![](/forums/images/avatarimages/default.gif)
Hi Martin,
This is exactly what i've meant. And it was helpful, worked for me!
Thank you,
Ighor.
![](/forums/images/avatarimages/default.gif)
Hello Martin,
I am using RadCartesianChart3D. While setting title property to all three axis, it displays title all around the chart.
I just want to display title at one side of each axis and other side will be blank. I have attached the image to get better understanding.
Can we do this in telerik?
Thanks in Advance!
Hello Minita,
There is no API in RadCartesianChart3D that allows hiding one of the axis titles. Both titles of an axis are always visible.
Regards,
Martin Ivanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.