Re: ScatterPlotAxisChart with multiple Properties

Nicolas Rossi <[email protected]> Wed, 10 Nov 2004 12:52:24 -0300
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
Hello

I have the solution for my problem. It was that I wanted to make a
Scatter Plot with a logaritmic line and with others points alone
(without lines). To do that I defined two series and two diferente
shapes and strokes:

Stroke[] strokes = new
Stroke[]{LineChartProperties.DEFAULT_LINE_STROKE, null};

Shape[] shapes = new Shape[]{new Ellipse2D.Double(), new
Ellipse2D.Double(0d,0d,5d,5d)};

Note that the second stroke is null, I will explain it below. The
first shape is an elipse with no width and height because I don't want
to see the points. I want to see only the logaritmic function.

As I said above, the stroke is null because for some series I want to
display only the points without the line that unites the points. To
make it work I had to modify some lines in ScatterPlotChart class.

I added this conditional in line 182:

if(scatterPlotProperties.getLineStrokes()[ i ] != null)

{

g2d.setStroke( scatterPlotProperties.getLineStrokes()[ i ]
);

g2d.draw( line );

}

I hope that it might help someone.

Bye

Ing. Nicolás Rossi

Certant S.A.

Av. de Mayo 666 Piso 3

(C1084AAO) Buenos Aires Argentina

Tel: +54 (11) 5219-0855/6 Int: 112

http://www.certant.com

Nicolas Rossi wrote:

Hello, I am new in the
list.
I am using some charts of JCharts's libraries and they work very well.

Now I have to generate a new chart. I am using ScatterPlotAxisChart but
I need to assign a new ScatterPlotProperties for each set of data
points. At this moment the same ScatterPlotProperties applies to the
entire dataset.

Can somebody help me to modify the method scatterPlotDataSet.addDataPoints
? I think the best way will be add a new parameter to this method with
the ScatterPlotProperties. I know that I will have to change other
classes to handle this behavior.

Thanks

Nicolas

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
jCharts-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jcharts-users

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click