From: Nathaniel G. A. <nat...@ya...> - 2004-10-22 14:27:34
|
This is not possible with the current release of the Scatter Plot. --- "dav...@in..." <dav...@in...> wrote: > Hi > > it is possible to see an example with ScatterPlot? > I have problems on setting ScatterPlotProperties. > > private ScatterPlotProperties createScatterPlotProperties() { > Stroke[] strokes = new Stroke[]{LineChartProperties.DEFAULT_LINE_STROKE}; > Shape[] shapes = new Shape[]{PointChartProperties.SHAPE_CIRCLE}; > return new ScatterPlotProperties( strokes, shapes ); > } > > private ScatterPlotDataSet createScatterPlotDataSet(int numero_valori, double[] Indicatore1, > double[] Indicatore2, String banca){ > Point2D.Double[] points = new Point2D.Double[numero_valori]; > for( int x = 0; x < numero_valori; x++ ) { > //--- y = x^2 > points[x] = ScatterPlotDataSet.createPoint2DDouble(); > points[x].setLocation(Indicatore1[x], Indicatore2[x]); > } > ScatterPlotDataSet scatterPlotDataSet = new ScatterPlotDataSet( > this.createScatterPlotProperties() ); > scatterPlotDataSet.addDataPoints( points, Color.red, banca ); > return scatterPlotDataSet; > } > > public void service(HttpServletRequest req, HttpServletResponse httpServletResponse)throws > ServletException, IOException { > try{... > ScatterPlotDataSet scatterPlotDataSet = this.createScatterPlotDataSet(numero_valori, > Indicatore1, Indicatore2, banca); > IScatterPlotDataSeries scatterPlotDataSeries = new > ScatterPlotDataSeries(scatterPlotDataSet, Descr1, Descr2, banca); > > I'd like to change LineChartProperties, I don't want to see the line connecting the dots. > > Thank you > > > > > ____________________________________________________________ > Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione. > Abbonati subito su http://www.libero.it > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |