Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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.
Olli Tietäväinen: 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