Another question about the renderers

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
azr
Posts: 13
Joined: Sun Apr 29, 2007 6:05 pm

Another question about the renderers

Post by azr » Tue Jun 05, 2007 3:54 pm

Hi,
I've a little problem with the use of the CategoryRenderers.
I want to be able to change the renderer by another (compatible , of course) but it doesn t work like i want, here is what i mean :

First step : Normal Renderer

Image

Then if i change the renderer :
(i only called the method setRenderer() with a new renderer)

Image

The colors change! I think that it s because the renderer change has not reseted a kind of index pointing to the categories. It is like i was adding new categories, it choose different colors ...
Is it possible to solve this problem? Or maybe the problem is elsewhere
Help me please :D

Locked