누구든지이 문제를 해결할 수 있습니까? 즉, 단일 LineAndPointFormatter로 안드로이드 플롯을 사용하여 여러 가지 색상의 그래프를 그려 볼 수 있습니까? 범위 값에 따라 LineAndPointFormatter 색상이 변경됩니다. 즉, 범위 값이 0-50 사이에 있다고 가정하면 범위 색상 값은 50-100이고 범위 값은 100-200이고 색상 값은 녹색입니다. 검은 색과 100 이상은 회색입니다. 어떻게 든 범위의 값이 그에 따라 나는 paint.setColor (Color.BLUE)를 사용하여 색상을 변경할 수 있습니다 얻을 것이다 경우 AndroidPlot Multi color LineAndPointFormatter
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);
하지만, 어떻게 범위의 값을 가져 및 색상을 변경하는 문제에 직면하고있다;
해결 방법이 있으면 알려주십시오.