I need some help with what might be a very trivial thing: When creating e.g. 9 Box series in the same chart, I want to display text on the X-axis. However, the TCDemo only shows how to do this for one single series, and the approach does not work when having multiple series seemingly. Like if I use the example from TCDemo
Code: Select all
String[] s = new String[1];
s[0] = varlabels[i];
ser.setLabels(new StringList(s));
Code: Select all
String[] s = new String[9];
s = varlabels;
lastOfTheSeriesCreated.setLabels(new StringList(s));
I only get as many labels on the axis as there are datapoints in the Series. So I get 4 axis-entries by doing it this way...
So, I've been turning the API inside out without finding a solution:
Can anyone help me set text values on the x-axis of my Box chart? Each of the 9 Box series contains 4 datavalues, so when I give the series values I cannot use Series.add(value, text). Also I try to set Series.getXValues().setName(name) but that's no good either...
Thanks in advance
Best regards,
Marius Lunde