XChart
XChart copied to clipboard
Wrap radarchart label text into new line
I'm plotting a radar chart which has slightly longer labels, but instead of wrapping text, it puts everything in a single line. Is there any way to make these labels wrap into a new line?
double[] xData = new double[] { 0.6, 0.2, 0.5, 0.7, 0.3 };
String[] labels = new String[] { "One", "Two dsf sdfsd dsf", "Three", "Four", "Five" };
RadarChart chart = new RadarChart(400,400);
chart.setRadiiLabels(labels);
chart.addSeries("X", xData);
chart.getStyler().setLegendVisible(false).setChartTitleBoxVisible(false).setPlotBorderVisible(false);