0

I have a chart with up to 100 XYseries. At this stage, the plot use default colors for drawing the different lines. Is it possible to have a gradient effect for all the series without setting the color for each series ?

Aniket Kulkarni
  • 12,825
  • 9
  • 67
  • 90
user3239711
  • 639
  • 1
  • 7
  • 24

1 Answers1

1

Use a custom DrawingSupplier, cited here, and let your implementation of getNextPaint() return the next element in a List<Color>. Construct your list by varying hue or saturation using Color.getHSBColor(), as shown here.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045