Search found 1 match
- Thu May 28, 2009 11:42 am
- Forum: JFreeChart
- Topic: Different colours on a line between 2 data points
- Replies: 16
- Views: 36840
Re:
you could do something like this: plot.setRenderer(new LineAndShapeRenderer() { public Paint getItemPaint(int row, int item) { double temp = plot.getDataset().getValue(row, item).doubleValue(); if (temp >= limit) { return Color.RED; } return Color.BLUE; } public Shape getItemShape(int row, int item...