change the shape of the levelrenderer from line to circle

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
raghuseeta
Posts: 7
Joined: Sat Aug 04, 2007 1:29 pm

change the shape of the levelrenderer from line to circle

Post by raghuseeta » Tue Sep 18, 2007 2:06 pm

hi all

I am drawing bar charts . My requirement is i have to put a dot or ellipse above each of the bars in the series . I went through levelrenderer which draws thin line over the bar . Is there a way to change the shape of line to circle of ellipse in levelrenderer . ....Or alternatively is there any way to do the same... anybody please help as it is a urgent requirement

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 Sep 20, 2007 4:19 pm

Just modify the drawItem() method in the LevelRenderer class...either subclass and override the method, or copy the source file into a new class (MyCustomLevelRenderer) and modify it there.
David Gilbert
JFreeChart Project Leader

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

raghuseeta
Posts: 7
Joined: Sat Aug 04, 2007 1:29 pm

tthank u

Post by raghuseeta » Fri Sep 21, 2007 1:41 pm

Thank u gilbert i will try :wink:

Locked