Link to home
Start Free TrialLog in
Avatar of npl77
npl77

asked on

how to show image in jfreechart

I want to show an image instead of a shape for each item in my xy scatter plot using JFreeChart. I was able to extend xylineandshaperenderer to draw an image but i can show the same image for each item. I want to show image specific to each item. I looked at the source code, the code uses int to represent an item(as against an object), it makes difficult to modify it, any ideas to do it in the simplest way?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of npl77
npl77

ASKER

thanks CEHJ, i thought of doing that, actually i am getting data from database....to use int as index, i'll have to write the dataset myself..i don't think of any easier way, i guess thats the only way to go, i was wondering if there is a better way, the source code of jfreechart is by no means object oriented and not extensible but after all its free, so i've no right to complain :)
:-)

Perhaps you could have a look at this too?

http://java-source.net/open-source/charting-and-reporting/cewolf