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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Data labels in pie chart won't wrap
When I add data to pie chart with long label the label won't wrap to several lines but labels are cut instead. Same problem occurs with legend. How I can fix this? See code below and attached screenshot.
I'm using Vaadin 6.8.15 and Vaadin Charts 1.1.9
public class TestWindow extends Window {
private static final long serialVersionUID = 1L;
public TestWindow() {
super();
setWidth(400, UNITS_PIXELS);
final Chart chart = new Chart();
chart.setSizeFull();
final Configuration conf = chart.getConfiguration();
conf.getChart().setType(ChartType.PIE);
final DataSeries series = new DataSeries();
series.add(new DataSeriesItem("Item with not so long title", 0.4f));
series.add(new DataSeriesItem("Item with also not so long title", 0.6f));
conf.setSeries(series);
addComponent(chart);
}
}
Last updated on
Hi,
Did you find any solution to this problem, please share?
Thanks.
Last updated on
You cannot reply to this thread.