Can anybody please help me with this issue i.e. Am trying to plot a Multicolor graph using android plot with single LineAndPointFormatter. According to the Range values LineAndPointFormatter color will change i.e. Suppose range values lies in between 0-50 then Line color will be blue, if range values lies 50-100 then color will be green, if range values lies 100-200 then color will be black and above 100 it will be gray.
Check and let me know if below solution is fine or not i.e.
LineAndPointFormatter formatter;
formatter = new LineAndPointFormatter(Color.rgb(50, 143, 222),
null, null, null);
Paint paint = formatter.getLinePaint();
paint.setStrokeWidth(10); // Set the formatter width
paint.setColor(Color.BLUE); // Set the formatter color
formatter.setLinePaint(paint);
But am facing problem how to get the range values and change the color, if somehow I will get the range values then accordingly I can change the color using paint.setColor(Color.BLUE);
Let me know if any solution is available.