set an empty content of a ChartPanel

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
JFreeChartUser
Posts: 9
Joined: Mon Sep 11, 2006 12:41 pm

set an empty content of a ChartPanel

Post by JFreeChartUser » Mon Sep 25, 2006 12:59 pm

Hi,
is it possipble to set an empty content for a ChartPanel? I will show only the legend of a chart at the beginning, but not the plot.

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 » Mon Sep 25, 2006 2:27 pm

Try a dataset with only null values in it. You'll need a dataset to get the series names for the legend.
David Gilbert
JFreeChart Project Leader

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

JFreeChartUser
Posts: 9
Joined: Mon Sep 11, 2006 12:41 pm

Post by JFreeChartUser » Tue Sep 26, 2006 9:38 am

Thank you for your tip,
but it does not work. I get always a blank white PlotArea ...
How can i disable this area at all ?

Locked