hi,
Can you set a background image for the plot area in place of a default background color ? how do i do this ? i tried using plot.setBackgroundImage(), but i do not get a image on the plot background. What could be the reason ?
any help would be greatly appreciated.
Thanks,
Alexander.
Background image for the plot area
Re: Background image for the plot area
Hi Alexander,
The plot.setBackgroundImage(...) call should work. Sometimes there can be a problem if the image you add isn't fully loaded, try:
plot.setBackgroundImage(JFreeChart.INFO.getLogo());
If that doesn't display the gorilla, then something else is the problem. Which chart are you using?
Regards,
Dave Gilbert
The plot.setBackgroundImage(...) call should work. Sometimes there can be a problem if the image you add isn't fully loaded, try:
plot.setBackgroundImage(JFreeChart.INFO.getLogo());
If that doesn't display the gorilla, then something else is the problem. Which chart are you using?
Regards,
Dave Gilbert
Re: Background image for the plot area
I tried using
plot.setBackgroundImage(JFreeChart.INFO.getLogo()); to get the background image. But, no image is appearing. I am creating Line Chart.
Could you please suggest what could be the problem?
Thanks.
plot.setBackgroundImage(JFreeChart.INFO.getLogo()); to get the background image. But, no image is appearing. I am creating Line Chart.
Could you please suggest what could be the problem?
Thanks.
Re: Background image for the plot area
I've checked this and it is failing against 0.9.4 (not sure why) but it is working in the CVS version of JFreeChart. I'm working hard to get 0.9.5 released by the end of next week, so I won't go back through the 0.9.4 source code to figure this one out...it will be working in 0.9.5.
Regards,
Dave Gilbert
Regards,
Dave Gilbert