Unable to give Box series names on x-axis
Posted: Wed Mar 05, 2008 2:42 pm
Hello again
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
only the first Box series gets any name, even though this loop runs over all 9 series. If I try to give the last series all the names, in effect
,
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
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