Search found 10 matches

by kanishk
Thu Sep 21, 2006 4:15 pm
Forum: JFreeChart
Topic: JfreeChart is CRASHING !!!!!!!!!!!!!!
Replies: 2
Views: 2989

what if I return a new CategoryDataset object incase there are NO readings to be plotted but I still need to see empty chart.
Will this be an issue ?
by kanishk
Thu Sep 21, 2006 3:59 pm
Forum: JFreeChart
Topic: JfreeChart is CRASHING !!!!!!!!!!!!!!
Replies: 2
Views: 2989

JfreeChart is CRASHING !!!!!!!!!!!!!!

:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:536) sun.dc.pr.PRException: endPath: bad path at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:537) at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer....
by kanishk
Thu Aug 24, 2006 2:33 am
Forum: JFreeChart
Topic: Irregular chart generation (Code attached)
Replies: 1
Views: 2502

oops... there is another class that you need. import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Iterator; import java.util.Vector; public class WSNUtil { /** * * @param v * @return */ public static Boolean[] vectorToBoolean(Vector v) { Boolean[] arr = new Boolean[v.size...
by kanishk
Thu Aug 24, 2006 2:30 am
Forum: JFreeChart
Topic: Irregular chart generation (Code attached)
Replies: 1
Views: 2502

Irregular chart generation (Code attached)

Hello, Given below is code of the 2 classes being used. The output image for both the methods is coming out different. I am unable to figure out why? Please suggest. Thanks, Kanishk import java.awt.Color; import java.awt.Font; import java.awt.image.BufferedImage; import java.io.File; import java.io....
by kanishk
Wed Jul 19, 2006 7:48 am
Forum: JFreeChart
Topic: Unable to control coloring of Line in LineAndShapeRenderer !
Replies: 4
Views: 7762

excellent !! that worked like a charm.
Thanks.
by kanishk
Mon Jul 17, 2006 8:06 am
Forum: JFreeChart
Topic: Unable to control coloring of Line in LineAndShapeRenderer !
Replies: 4
Views: 7762

Unable to control coloring of Line in LineAndShapeRenderer !

Hello, Given below is the code and image generated. My problem is that I don't want the lines to be black but ONLY the data points. Any suggestions? Also, is it possible to put the value above the plotted data points in the graph ? public class MyRenderer extends LineAndShapeRenderer { private Boole...
by kanishk
Wed May 24, 2006 4:15 am
Forum: JFreeChart
Topic: Multiple Colors in Bar
Replies: 13
Views: 16677

I am not sure how will this work when using XY chart? I tried using skunk's code and it painted the line AND the dot as BLACK..where as I wanted ONLY the dot to be black. here is the code... public class MyRenderer extends LineAndShapeRenderer { private Boolean[] anomaly; /** * * */ public MyRendere...
by kanishk
Tue May 02, 2006 1:39 pm
Forum: JFreeChart
Topic: Multiple Colors in Bar
Replies: 13
Views: 16677

I created a subclass to override this method.
public Paint getItemPaint(int series, int item)

BUT, what do I write in the code body to give the functionality?

I have apparently only 1 series and all I want is that points with value below 50 should be filled with black, else white.
by kanishk
Tue May 02, 2006 7:31 am
Forum: JFreeChart
Topic: Multiple Colors in Bar
Replies: 13
Views: 16677

I am trying to create a XYLine graph where values less that 50 should be filled with black colour and rest red. JFreeChart chart = ChartFactory.createLineChart( "Reading Status for MOTE# " + moteId, // chart title "Date/Time", // x axis label "Reading", // y axis label getDataset(reading), // data P...
by kanishk
Mon May 01, 2006 2:59 am
Forum: JFreeChart
Topic: Multiple Colors in Bar
Replies: 13
Views: 16677

Thank you. :D Hey.. Can you please shed some light on how to override this method? this is the code snippet for my renderer. LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot .getRenderer(); renderer.setShapesVisible(true); renderer.setDrawOutlines(true); renderer.setUseFillPaint(true); r...