From: Nicolas R. <nr...@ce...> - 2004-11-10 15:51:29
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <tt>Hello<br> <br> 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:<br> <br> </tt> <blockquote><tt>Stroke[] strokes = new Stroke[]{LineChartProperties.DEFAULT_LINE_STROKE, null};<br> Shape[] shapes = new Shape[]{new Ellipse2D.Double(), new Ellipse2D.Double(0d,0d,5d,5d)};<br> </tt></blockquote> <tt><br> 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.<br> <br> 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. <br> I added this conditional in line 182:<br> <br> </tt> <blockquote><tt>if(scatterPlotProperties.getLineStrokes()[ i ] != null)<br> {<br> g2d.setStroke( scatterPlotProperties.getLineStrokes()[ i ] );<br> g2d.draw( line );<br> }<br> </tt></blockquote> <tt><br> I hope that it might help someone.<br> <br> Bye</tt><br> <br> <div class="moz-signature"> <style> .nombre{ font-family: georgia; font-size: 12; font-weight: bold; color: #000000; line-height: 14px; } .empresa{ font-family: verdana; font-size: 11; font-weight: bold; color: #000000; line-height: 14px; } .texto{ font-family: tahoma; font-size: 11; color: #535353; line-height: 14px; } .url{ font-family: tahoma; font-size: 11; color: #0000FF; line-height: 14px; } </style><span class="nombre">Ing. Nicolás Rossi<br> </span><span class="empresa">Certant S.A.<br> </span><span class="texto"> Av. de Mayo 666 Piso 3<br> (C1084AAO) Buenos Aires Argentina<br> Tel: +54 (11) 5219-0855/6 Int: 112<br> <a class="url" href="http://www.certant.com">http://www.certant.com</a> </span></div> <br> <br> Nicolas Rossi wrote: <blockquote cite="mid...@ce..." type="cite"> <title></title> <font size="-1"><font face="Trebuchet MS">Hello, I am new in the list. I am using some charts of JCharts's libraries and they work very well.<br> <br> 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.<br> <br> Can somebody help me to modify the method <i>scatterPlotDataSet.addDataPoints</i> ? 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.<br> <br> <br> Thanks<br> <br> Nicolas<br> </font></font><br> ------------------------------------------------------- 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. <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click">http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click</a> _______________________________________________ jCharts-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:jCh...@li...">jCh...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/jcharts-users">https://lists.sourceforge.net/lists/listinfo/jcharts-users</a> </blockquote> </body> </html> |