How to set the width of the chart title


Simple question: how do I set the size of the chart title? Seems like it should just be a matter of setting the frame of _chart.titleLabel however the chart itself seems to call sizeToFit on the titleLabel which then undoes whatever size I had set. Thanks.

ShinobiCharts - Version: 2.7.3-1, Edition: Premium, Release Date: Sep  9 2014


If you’re not happy with the position options on the chart you’ve got a few options:

  • Set your chart title’s frame in your charts delegate method:

    -(void)sChartRenderFinished:(ShinobiChart *)chart

  • Roll your own title label. Simply add a UILabel as a subview of your chart.