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

CategoricalAxis distance from label

3 Answers 145 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 30 Dec 2015, 10:00 AM

Hi.

How can i change the distance between a CategoricalAxis and its label ?

( my chartview have two horizontalAxis. the top one have this gap problem )

CategoricalAxis gregorianAxis = new CategoricalAxis();
gregorianAxis.LabelFitMode = AxisLabelFitMode.Rotate;
gregorianAxis.LabelRotationAngle = 60;
gregorianAxis.ClipLabels = false;
gregorianAxis.VerticalLocation = AxisVerticalLocation.Top;
mySerie.HorizontalAxis = gregorianAxis;

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 30 Dec 2015, 02:56 PM
Hello Ali,

Thank you for writing.

By design, labels are positioned close to their axis. From the attached image I understand that you have moved the horizontal axis to the middle of the chart and you have also set its VerticalLocation to be Top. The desired behavior in this scenario would be that the labels be positioned on top of the horizontal axis in the middle.

The offset position to the top of the chart is an issue and I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item. I have also updated your Telerik points.

Due to its complexity, a proper workaround is not available. I can suggest you either setting the LabelFitMode to MultiLine or the VerticalLocation to Bottom.

I hope this information was useful. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
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
Ali
Top achievements
Rank 1
answered on 31 Dec 2015, 07:09 AM

Thanks for your answer.

I use MultiLine for LableFitMode property if any one have the same problem.

Regards.

0
Hristo
Telerik team
answered on 04 Jan 2016, 03:05 PM
Hi Ali,

Thank you for writing back.

I am glad that the setting the MultiLine property to true fits your local set up.

Please let me know if you need additional assistance on that matter.

Regards,
Hristo Merdjanov
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
Tags
ChartView
Asked by
Ali
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Ali
Top achievements
Rank 1
Share this question
or