Search code examples
ioschartsshinobi

ShinobiCharts hiding axis


I am using Shinobi charts on iOS and i am having issues when i try not to display the axis.

chart.axis.width = @0 -> doesn't work

chart.axis.width = @0.1 -> it works ok seems hacky though.

Is there another way to hide the axis?


Solution

  • Did you mean to say "chart.xAxis" or "chart.yAxis"? I don't see an option for "chart.axis".

    At any rate, try this:

    chart.xAxis.style.majorGridLineStyle.showMajorGridLines = NO;

    You can play around with other style items as you wish. Check out http://www.shinobicontrols.com/docs/ShinobiControls/ShinobiCharts/2.2.0/Standard/Normal/Classes/SChartAxisStyle.html for more info.