XChart icon indicating copy to clipboard operation
XChart copied to clipboard

Wrap radarchart label text into new line

Open anup-a opened this issue 2 years ago • 0 comments

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);

Sample_Chart

anup-a avatar Nov 25 '21 06:11 anup-a