Android - Shinobi Bar Graph


#1

I am new to the android enviroment and using shinobi to implement a bar graph. How can I make the white background of the graph transparent using android


#2

Hi BlackButterfly,

In order to change the background colours of your chart you need to access the ChartStyle component of the ShinobiChart. In your case I’d imagine you’ll need the setPlotAreaBackgroundColor method and pass it a transparent colour. One of the easiest ways to do this is like so:

shinobiChart.getStyle().setPlotAreaBackgroundColor(Color.TRANSPARENT);

Don’t forget to call shinobiChart.redrawChart() if you’re changing the colour after you’ve added the axes and series.

Kind regards,

Patrick