MPAndroidChart - Horizontal (left to right) gradient color in Barchart

14 views Asked by At

I am working with Barchart of MPAndroidChart. Is it possible to define horizontal gradient color on BarDataSet?

I know that you can set gradient color like this :

val dataset = BarDataSet(entries, null)
dataset.setGradientColor(startColor, endColor)

But the gradient is from bottom to top and I would like a gradient from left to right.

Thanks for your help!

0

There are 0 answers