Just to follow on from our email conversation, for the benefit of any others who may be looking for answers to a similar issue:
Firstly, in my post above, I have noticed that I made an error when I said ‘working from the outside in…’ - it should have read ‘working from the inside out’ - apologies for any confusion there.
So just to recap - we have several View layers which make up the ShinobiChart Object:
The plot area - this is where the series are plotted.
The canvas - this contains the plot area plus any axes.
The chart - this contains any title, legend and the canvas (and it’s contained plot area).
As I touched upon earlier, the plot area will size itself to take up all available space in its container - so if you have for example no data points within your series then the axes can’t display any tick marks or labels and will only show their lines. The plot area therefore will be the full size of the canvas minus the thickness of the axes’ lines.
Similarly, the canvas will size itself to take up all of the available space in its container - so if you have no chart title or legend, it will be the full size of the chart object.
Bearing this in mind then, you could set your background colors in the following way:
Call the following methods on your ShinobiChart’s style object (obtained by calling getStyle on the ShinobiChart):
setBackgroundColor(<your chosen color>)
setCanvasBackgroundColor(<your chosen color>)
setPlotAreaBackgroundColor(<your chosen color>)
As with all Style objects you must call the redrawChart method for these changes to take effect.
Quite often users set a background color and then set the canvas and plot area background colors to be transparent. Please note that on devices running versions of Android that are pre-api v14 (Ice Cream Sandwich) due to a limitation in the Android framework it is not possible to set the plot area to be transparent.
I hope that you find this information useful, if you have any more queries please get back in touch.