MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

CandleStickData only paint border line, not fill it

Open juanm4 opened this issue 9 years ago • 1 comments

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: 01032017121105

How can I get all candles filled with color? (In this case, green color)

Thanks in advance!

juanm4 avatar Mar 01 '17 11:03 juanm4

try this dataSet.setDecreasingPaintStyle(Paint.Style.FILL_AND_STROKE);

saulmaos avatar Aug 09 '18 09:08 saulmaos