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

YAxis title offset from axis labels

1 Answer 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ladislav
Top achievements
Rank 1
Ladislav asked on 10 Dec 2014, 07:45 AM
Hello,
Is there any option, how to make gap between yaxis title and yaxis labels larger. As you can see in attached picture, it does not look well.
Here is my code snippet:

var yLeftAxis = TKChartNumericAxis(range: TKRange(statisticItems: [data[0], data[1]]))
var yRightAxis = TKChartNumericAxis(range: TKRange(statisticItems: [data[2]]))
        
yLeftAxis.position = TKChartAxisPosition.Left;
yLeftAxis.style.lineHidden = false
yLeftAxis.style.labelStyle.firstLabelTextAlignment = TKChartAxisLabelAlignment.Left;
yLeftAxis.style.labelStyle.firstLabelTextOffset = UIOffset(horizontal: 10, vertical: 0);
yLeftAxis.style.labelStyle.textOffset = UIOffset(horizontal: 10, vertical: 0)
yLeftAxis.title = "Straty (MWh)"
yLeftAxis.style.titleStyle.rotationAngle = CGFloat(MathHelper.degreeToRadian(-90))
        
yRightAxis.position = TKChartAxisPosition.Right;
yRightAxis.style.lineHidden = false
yRightAxis.style.labelStyle.firstLabelTextAlignment = TKChartAxisLabelAlignment.Left;
yRightAxis.style.labelStyle.firstLabelTextOffset = UIOffset(horizontal: 10, vertical: 0);
yRightAxis.style.labelStyle.textOffset = UIOffset(horizontal: 10, vertical: 0)
yRightAxis.title = "Rozdiel strĂ¡t (MWh)"
yRightAxis.style.titleStyle.rotationAngle = CGFloat(MathHelper.degreeToRadian(90))


Thank you!

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 10 Dec 2014, 11:55 AM
Hello Ladislav,

To avoid duplication I have answered  the same question in other post.
Regards,
Pavel Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Ladislav
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or