AAChartKit-Swift
AAChartKit-Swift copied to clipboard
Labels numberOfLines
This is what i want.

This is what i have

1- How can i have labels with 2 lines? Like "Fr\n11.09"
2- How can i hide horizontal indicator? (covered it with RED color)
3- How can i set vertical alignment between yAxis Labels and it's gridLines? (covered it with GREEN color)
Can you post your console log of AAOptions ?
Can you post your console log of AAOptions ?
-----------π¨π¨π¨ console log AAOptions JSON information of AAChartView π¨π¨π¨-----------:
{
"colors" : [
"#199CFF"
],
"credits" : {
"enabled" : false
},
"plotOptions" : {
"series" : {
"marker" : {
"radius" : 5,
"symbol" : "circle"
},
"stacking" : "",
"animation" : {
"easing" : 1,
"duration" : 800
},
"dataLabels" : {
"enabled" : false
}
}
},
"touchEventEnabled" : true,
"tooltip" : {
"shared" : true,
"crosshairs" : true,
"enabled" : false,
"valueSuffix" : " "
},
"title" : {
"text" : ""
},
"chart" : {
"margin" : [
0,
0,
20,
40
],
"scrollablePlotArea" : {
"minWidth" : 720,
"scrollPositionX" : 1
},
"pinchType" : "none",
"type" : "line",
"backgroundColor" : "rgba(0,0,0,0)",
"panning" : true
},
"series" : [
{
"data" : [
1,
2,
4,
4,
1,
2.3999999999999999,
0,
0,
0
],
"color" : "#199CFF"
}
],
"legend" : {
"enabled" : false,
"itemStyle" : {
}
},
"xAxis" : {
"categories" : [
"Fr",
"Sa",
"Su",
"Mo"
]
},
"yAxis" : {
"min" : 0,
"gridLineDashStyle" : "dot",
"gridLineColor" : "#8F98C1",
"categories" : [
"%0",
"%25",
"%50",
"%75",
"%90"
]
}
}