Empty Line chart

How to draw empty chart in vaadin. I an mot able draw empty chart which contains only xy axis

Hi,

have you tried setting an explicit min and max value to the X and Y axis? I think by default the axis determines its length by the range of the data values and if there are no values, the axis won’t show at all.

-Olli

yes i have tried. but without ListSeries it can not draw chart.

So add an empty series to the chart then?

-Olli

thanks it works now

You’re welcome! Note that if you want to hide the legend for the empty series, you use legend.setEnabled(false) for that.

-Olli