Skip to main content



      Home
Home » Archived » BIRT » Add labels to points at scattercharts
Add labels to points at scattercharts [message #170127] Wed, 14 June 2006 06:00
Eclipse UserFriend
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
Previous Topic:How to insert page break in table
Next Topic:Add labels to points at scattercharts
Goto Forum:
  


Current Time: Sun May 11 03:44:56 EDT 2025

Powered by FUDForum. Page generated in 0.03739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top