I am a newbie to Java and using JFreechart to display scatter plot.I have a thread which keeps adding points to scatter plot.Color of these points can be different depending upon some property(That is known,not the issue).Currently i am using "XYItemrenderer.setSeriesPaint(0,Color.black);" to change the color but it changes color of all the points.I tried searching and found this-
JFreeChart different colors in different regions for the same dataSeries
But i am confused about how can i pass that information which decides the color of dot to method?
Any help would be appreciated :)