MPAndroidChart
MPAndroidChart copied to clipboard
CandleStickData only paint border line, not fill it
Hi, I have a candlestickchar, and I'm painting with two color. Color green is when data value up, and color red when data value down. In summary, I have an array of color and set it in this way:
int[] color = new int[12];
for (int i=0; i<12; i++){
if (i%2 == 0){
color[i] = R.color.red_trans;
}else{
color[i] = R.color.green_trans;
}
}
dataset.setColors(color, context);
The problem is that all lines aren't filled with their colors. In the next image show the problem:

How can I get all candles filled with color? (In this case, green color)
Thanks in advance!
try this dataSet.setDecreasingPaintStyle(Paint.Style.FILL_AND_STROKE);