Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart2D for Java
 ScatterPlot NumericLabels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RunnerGirl

6 Posts

Posted - 15 Feb 2008 :  15:47:55  Show Profile  Reply with Quote
Is there a way to show the data point values of a scatter plot?

Here's what I have so far but the datapoint values are not being displayed:

attrib4.setFillFlag(true);
attrib4.setSymbolSize(20);
SimpleScatterPlot thePlot2 = new SimpleScatterPlot(pTransform1, Dataset2, ChartConstants.SQUARE, attrib4);
thePlot2.setShowDatapointValue(true);
NumericLabel modellabel = new NumericLabel();
modellabel.setXJust(ChartConstants.JUSTIFY_CENTER);
modellabel.setYJust(ChartConstants.JUSTIFY_MIN);
modellabel.setColor(Color.red);
Font modellabelfont = new Font("SansSerif", Font.PLAIN,10);
modellabel.setTextFont(modellabelfont);
thePlot2.setPlotLabelTemplate(modellabel);
gWG.addChartObject(thePlot2);

quinncurtis

1164 Posts

Posted - 15 Feb 2008 :  17:12:02  Show Profile  Reply with Quote
Sorry, but SimpleScatterPlot method does not implement data point values. The SimpleLineMarkerPlot is the closest, connecting the scatter plot values with a line. I can't see any reason why it should not be included as part of the SimpleScatterPlot and will see that it gets added to the next revision of the software.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07