Wrong colors


#1

Hello

I tried to set the area color with a specified alpha channel. The problem is that the fill color shows always a more lighter color than the expected one.

I created some screenshots to show the differences.

The screen background color is the expected and you can see that the color on the chart is more lighter.

         

Is there a problem with the alpha channel handling in Shinobi or I do something wrong?

Here is the code to set the background color:

int test_color_yellow = Color.argb(70, 192, 172, 0);
int test_color_blue = Color.argb(50, 33, 95, 139);
int test_color_grey = Color.argb(30, 0, 0, 0);

findViewById(R.id.crosshair).setBackgroundColor(test_color_blue);

shinobiChart.getStyle().setPlotAreaBackgroundColor(Color.WHITE);
shinobiChart.getStyle().setCanvasBackgroundColor(Color.WHITE);
shinobiChart.getStyle().setBackgroundColor(Color.WHITE);

And here I set the chart area color:

companyRevenue.getStyle().setFillStyle(SeriesStyle.FillStyle.FLAT); companyRevenue.getStyle().setAreaColor(test_color_blue);

Any help regarding this appreciated.

Thanks!


#2

Hi Klau_N,

Thanks for getting in touch about this.

You’re not doing anything wrong, it seems this is a problem with the ShinobiCharts library itself. It actually affects both the iOS and Android versions. Once we’ve looked into it and got a fix for it we’ll post back on here.

Sorry for any inconvenience.

Patrick