Hugo Alves
Hugo Alves

Reputation: 1555

Shinobi Charts bar graph Customising

I'm using Shinobi Controls Charts to do this project and i'm having some trouble to find ou how to customise my chart to look as close as possible to this:

Target graph

Here is what i have so far:

So far i have this

The labels at the bottom are the ones that are represented as [name] in the first chart.

The colores of the bars are ok i know how to change them. My problem resides on the labels on the top of each bar and the grid and background grid.

1) How can i remove the grid and change the graph color to transparant? chart.xAxis.style.gridStripeStyle.showGridStripes = NO; does not remove the grid.

2) The radial series had a callback where i could change the labels position, but after taking a look at all the documentation that comes with the demo i can't find anything to change the position of the axis's labels for a bar graph and add more complexity like an image and 2 or 3 labels to it. Also those boxes have to move along with bars.

Does anyone know how to do this 2 topics?

Thank you in advance for any given help.

EDIT : I've been able to remove the axis with

axis.style.gridStripeStyle.showGridStripes = NO; // removes the main bar
axis.style.majorGridLineStyle.showMajorGridLines = NO; // removes the grid bars

Upvotes: 4

Views: 3212

Answers (2)

zero7
zero7

Reputation: 1298

Regarding your first point use

chart.axis.style.majorGridLineStyle.showMajorGridLines = NO

Upvotes: 0

jimpic
jimpic

Reputation: 5520

Regarding your second point, use

- (void)sChart:(ShinobiChart *)chart alterTickMark:(SChartTickMark *)tickMark
beforeAddingToAxis:(SChartAxis *)axis

Upvotes: 2

Related Questions