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

Customizing Axis's Label and Title in RadCartesianChart

4 Answers 181 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ighor
Top achievements
Rank 1
Ighor asked on 17 Jun 2015, 07:04 PM

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

Sort by
0
Martin Ivanov
Telerik team
answered on 18 Jun 2015, 02:11 PM
Hi Ighor,

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"/>
    If this is not what you are looking for, can you please describe the desired result? Drawings with the expected look also will be very helpful for understanding your case.
  •  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.
I hope this helps.

Regards,
Martin
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Ighor
Top achievements
Rank 1
answered on 18 Jun 2015, 08:58 PM

Hi Martin,

 

This is exactly what i've meant. And it was helpful, worked for me!

 

Thank you,

Ighor.

0
Minita
Top achievements
Rank 1
Veteran
answered on 17 Dec 2020, 12:19 PM

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!

0
Martin Ivanov
Telerik team
answered on 17 Dec 2020, 01:04 PM

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/.

Tags
Chart
Asked by
Ighor
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Ighor
Top achievements
Rank 1
Minita
Top achievements
Rank 1
Veteran
Share this question
or