Changing colors of specific Chart Entities in a ScatterPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Adam Russell

Changing colors of specific Chart Entities in a ScatterPlot

Post by Adam Russell » Thu Jan 02, 2003 5:52 pm

I have a scatter plot generated via a ChartFactory.createScatterPlot() call. Is it possible to dynamically re-render the plot and change the colors of specific XYItemEntities that I choose and then redisplay the scatterplot? Perhaps another way of achieving this result?
Any advice is appreciated!!

David Gilbert

Re: Changing colors of specific Chart Entities in a ScatterP

Post by David Gilbert » Tue Jan 07, 2003 11:48 pm

Hi Adam,

You would need to write your own custom renderer, because at the moment each point in the scatter plot just takes the color for the series. It's certainly possible, but a reasonable amount of coding will be required.

Regards,

Dave Gilbert

Locked