2

We are using the MPAndroidChart library in our project.

We are drawing a stackedbar chart, and each bar gets a background color that is received from a service. For this we just use

int[] colors = new int[size];
for(....
{
   //set color value
}

BarDataSet set = new BarDataSet(.....;
set.setColors(colors);

Some bars however should be drawn with a hatch pattern. How can we achieve this ?

example of a hatched bar

Knarf
  • 2,077
  • 1
  • 16
  • 24

0 Answers0