This question is locked. New answers and comments are not allowed.
Hello,
Is there any option, how to make gap between yaxis title and labels larger. As you can see in attached picture, it does not look well.
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!
Is there any option, how to make gap between yaxis title and labels larger. As you can see in attached picture, it does not look well.
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!