TAGS :Viewed: 9 - Published at: a few seconds ago

[ Core Plot: How do you centre the axis labels beneath bars / horizontally offset them? ]

I am making a column chart in Core Plot, and I want the x-labels to appear beneath the columns, rather than on the left and right. Having trouble finding solutions through searches; either outdated or not related. Feel like plenty of people have had this problem before, I'm just using the wrong keywords.

Screenshot of how it looks right now:

screenshot of current state

Thanks

Answer 1


The bars are centered at the bar location returned from the datasource, plus or minus any barOffset. For a stacked plot like this, use the default barOffset of zero (0) and make sure the bar locations match the tick locations on the axis.