Search found 2 matches

by jesclaine
Tue Jan 11, 2011 4:00 pm
Forum: JFreeChart
Topic: Different colored line between points
Replies: 1
Views: 2685

Different colored line between points

Hi, i know it's possible to choose one color for one curve : XYItemRenderer renderer = plot.getRenderer(); renderer.setSeriesPaint(index, Color.blue); But I want to know if is it possible to have for one curve different color between points ? For exemple : x---------------x~~~~~~~~~~~~~~x===========...
by jesclaine
Tue Dec 21, 2010 4:03 pm
Forum: JFreeChart
Topic: Gradient line ?
Replies: 3
Views: 6335

Gradient line ?

Hi, Is it possible to have a gradient line in XYlinechart ? I tried this but is not good : XYItemRenderer renderer = plot.getRenderer(); Paint p = new GradientPaint(x1, y1, Color.blue, x2, y2, Color.red); renderer.setSeriesPaint(0, p); The problem is i don't know the absolute position of my first po...