Get the chart plot area size


#1

Is there any way to get hold of the chart plot area size?(where the bars/columns… etc is)?


#2

The axes and plot area are a part of a subview of the chart called canvas. The plot area is a subview within the canvas called glView. You can access the frame of this as follows:

chart.canvas.glView.frame

To allow you to work with the elements on the canvas, you’ll also need to include the following header:

#import <ShinobiCharts/SChartCanvas.h>

#3

Thanks! When doing this in the sChartRenderFinished chart delegate method I got the size of the chart area.