|
From: davidgalli\@inwind\.it <dav...@in...> - 2004-10-22 12:44:13
|
Hi
it is possible to see an example with ScatterPlot?
I have problems=
on setting ScatterPlotProperties.
private ScatterPlotProperties creat=
eScatterPlotProperties() {
Stroke[] strokes =3D new Stroke[]{LineCha=
rtProperties.DEFAULT_LINE_STROKE};
Shape[] shapes =3D new Shape[]{Po=
intChartProperties.SHAPE_CIRCLE};
return new ScatterPlotProperties( =
strokes, shapes );
}
private ScatterPlotDataSet createScatterPlotDa=
taSet(int numero_valori, double[] Indicatore1, double[] Indicatore2, Stri=
ng banca){
Point2D.Double[] points =3D new Point2D.Double[numero_val=
ori];
for( int x =3D 0; x < numero_valori; x++ ) {
//--- y =3D=
x^2
points[x] =3D ScatterPlotDataSet.createPoint2DDouble();
=
points[x].setLocation(Indicatore1[x], Indicatore2[x]);
}
Scat=
terPlotDataSet scatterPlotDataSet =3D new ScatterPlotDataSet( this.create=
ScatterPlotProperties() );
scatterPlotDataSet.addDataPoints( points,=
Color.red, banca );
return scatterPlotDataSet;
}
public void=
service(HttpServletRequest req, HttpServletResponse httpServletResponse)=
throws ServletException, IOException {
try{...
Scatte=
rPlotDataSet scatterPlotDataSet =3D this.createScatterPlotDataSet(numero_=
valori, Indicatore1, Indicatore2, banca);
IScatterPlotDataSe=
ries scatterPlotDataSeries =3D new ScatterPlotDataSeries(scatterPlotDataS=
et, Descr1, Descr2, banca);
I'd like to change LineChartProperties, I =
don't want to see the line connecting the dots.
Thank you
=0A=0A=0A=0A=
____________________________________________________________=0ALibero ADS=
L: navighi gratis a 1.2 Mega, senza canone e costi di attivazione. =0AAbb=
onati subito su http://www.libero.it =0A
|