Add labels to points at scattercharts [message #170127] |
Wed, 14 June 2006 06:00 |
Eclipse User |
|
|
|
Originally posted by: asdasd.asd.de
Hi everyone,
I want to create a scatter cahrt that shows two metrics of a set of
components. But since it is not clear which datapoint belongs to which
component, I would like to add labels to every datapoint presenting the name
of the component. But the only thig I could do was adding the number values
to the datapoints labels:
NumberDataSet ySet = NumberDataSetImpl.create(values2);
....
ScatterSeries yS = (ScatterSeries) ScatterSeriesImpl.create();
yS.setSeriesIdentifier(metric2);
....
DataPointComponent dpc =
DataPointComponentImpl.create(DataPointComponentType.ORTHOGO NAL_VALUE_LITERAL,
JavaNumberFormatSpecifierImpl.create("#" + sep + "###")); // three
digits after the decimal point
DataPointComponent dpc2 =
DataPointComponentImpl.create(DataPointComponentType.BASE_VA LUE_LITERAL,
JavaNumberFormatSpecifierImpl.create("#" + sep + "###")); // three
digits after the decimal point
yS.getDataPoint().getComponents().clear();
yS.getDataPoint().getComponents().add(dpc);
yS.getDataPoint().getComponents().add(dpc2);
yS.setDataSet(ySet);
The only thing supported by DataPointcomponentType is orthogonal value, base
value (which show the numeric values at every datapoint) and series value
(which is the same for every data point).
Is there any possibility to add an individual String to each datapoints
label (like the Name)???
Thanks,
Ansgar
|
|
|
Powered by
FUDForum. Page generated in 0.03692 seconds