Color of specific points

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nitin
Posts: 16
Joined: Wed Dec 03, 2003 10:21 am
Location: Pune

Color of specific points

Post by nitin » Thu Dec 04, 2003 1:56 pm

Hi,
I am plotting a XBarR chart using JFree Chart .
In this chart there is a upperBound and a lower bound .
I require to change color of points that are beyond these two points.
Can anyone help me

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Dec 04, 2003 6:46 pm

You'll need to subclass the renderer and override the getItemPaint(...) method.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

nitin
Posts: 16
Joined: Wed Dec 03, 2003 10:21 am
Location: Pune

Thanks

Post by nitin » Sat Dec 06, 2003 11:05 am

Thanks a lot.
I could easily solve the problem.
I will be greatful if u can help me in solving my next problem
I am drawing an XBarR Chart a i want to display the UCl,LCL and median values on secondary range axis at the position where corresponding lines r drawn in the chart.I tried a lot using symbolictickunits and other stuffs but couldnot arrange the secondary axis.
Plz help me in solving this problem

nitin
Posts: 16
Joined: Wed Dec 03, 2003 10:21 am
Location: Pune

Post by nitin » Thu Dec 18, 2003 1:00 pm

hi all,
I have found another way for changing color of specific points in a series but I am not very sure if this is the right way to do it
What I did is add points for which I want to change color in different different series and then set the color for these series using renderer.
It worked for me

Locked