Search found 18 matches

by lia
Tue Feb 05, 2008 6:56 am
Forum: Eastwood Chart Servlet
Topic: problem when when writing the graph as PNG
Replies: 6
Views: 56626

I have just migrated from Java 1.4 and Tomcat 4. My servlet was able to get the output stream and display the chart in Java 1.4 using Tomcat 4, now I am working in Java 1.6 and Tomcat 6 and I am getting the error javax.imageio.IIOException: unable to get outputsteam. PLease help I am also stuck
by lia
Thu Aug 02, 2007 4:20 am
Forum: JFreeChart
Topic: mouse click not returning correct values
Replies: 2
Views: 5287

I have found part of the problem. The dataset was using a RegularTimePeriod of Month and I was creating a Day in the ChartMouseListener. When I changed the code and recompiled I noticed that the index that is returned is consistently 1 greater than what it should be. I guess I can deal with that. .....
by lia
Thu Aug 02, 2007 12:37 am
Forum: JFreeChart
Topic: mouse click not returning correct values
Replies: 2
Views: 5287

mouse click not returning correct values

I have taken TimeSeriesDemo1 and modified by adding a ChartMouseListene to it. When I click on the chart and get the x axis value based on the technique shown in CrossHairDemo1 ( cast the double to a long and use the long to create a Date, use the Date to create a Day) I am not getting correct value...
by lia
Sat Jul 28, 2007 10:34 pm
Forum: JFreeChart
Topic: click chart get DefaultOHLCDataset values
Replies: 0
Views: 2433

click chart get DefaultOHLCDataset values

I have a chart with a DefaultOHLCDataset. When I click on the chart, I get x and y coordinates from the click event. I am able to translate the click point to data space values by using translateScreenToJava2D. However that is not what I want to do. I want to be able to click on the chart and then d...
by lia
Wed Jul 18, 2007 4:46 am
Forum: JFreeChart
Topic: MarkerChangeEvents
Replies: 2
Views: 3701

No, I am using 1.0.6. I just attempted to use the setValue() method for ValueMarker and got a compiler error. It does not seem to be in the jar file that comes with the demo. It is in the source files so I will create myself an new jar file.
by lia
Mon Jul 16, 2007 11:59 pm
Forum: JFreeChart
Topic: MarkerChangeEvents
Replies: 2
Views: 3701

MarkerChangeEvents

I am using JFreeCharts 1.0.6 I am trying to implement a MarkerChangeListener. However when I add the following import statements to the top of MarkerDemo2 and recompile the compiler complains that it can't resolve the symbol. import org.jfree.chart.event.MarkerChangeEvent; import org.jfree.chart.eve...
by lia
Thu Jun 28, 2007 3:46 am
Forum: JFreeChart
Topic: Plot Height and Width
Replies: 0
Views: 2617

Plot Height and Width

I need to know the height and width of the plot drawing area in pixels. Could you please tell me how (which method) I can use to determine this? Thank you.
by lia
Wed Jun 27, 2007 4:10 pm
Forum: JFreeChart - Stockmarket
Topic: rangeAxis.java2DToValue throwing null pointer exception
Replies: 4
Views: 13221

Thank you Skunk and Develop your suggestions made the difference. You rock!!!
by lia
Wed Jun 27, 2007 3:42 am
Forum: JFreeChart - Stockmarket
Topic: rangeAxis.java2DToValue throwing null pointer exception
Replies: 4
Views: 13221

There's still something I'm missing

I have been searching the forum for similar problems and have managed to make some changes that resolve the null pointer issue but I am still not able to get the annotations to show up. Here is the new code. If you can see what is wrong please tell me Thanks. /* ----------------------- * MouseListen...
by lia
Tue Jun 26, 2007 7:50 pm
Forum: JFreeChart - Stockmarket
Topic: rangeAxis.java2DToValue throwing null pointer exception
Replies: 4
Views: 13221

rangeAxis.java2DToValue throwing null pointer exception

I am attempting to use a ChartMouseListener on a combined chart. However when I do I am getting a null pointer exception. I have combined 2 of the demos to illustrate the problem. Does anyone have any suggestions about how I can solve this. Thanks. /* ----------------------- * MouseListenerDemo4.jav...
by lia
Fri Jun 22, 2007 8:35 pm
Forum: JFreeChart
Topic: removing listener from ChartPanel
Replies: 1
Views: 3610

removing listener from ChartPanel

Could you please give me example code for how to remove a listener.? I find your example code very helpful. I have read the api but I don't seem to be implementing what is required as I am getting errors. chartPanel.removeChartMouseListener(ChartMouseListener.class); //error ChartMouseListener canno...
by lia
Thu Apr 05, 2007 3:04 am
Forum: JFreeChart
Topic: CandlestickRenderer
Replies: 1
Views: 3464

I have found that I can set the outline paint by using setSeriesPaint(series#,Color).
by lia
Wed Apr 04, 2007 8:33 pm
Forum: JFreeChart
Topic: CandlestickRenderer
Replies: 1
Views: 3464

CandlestickRenderer

Hi, I need to set the outline paint for my candlestick chart. I am trying to use the commented out code in CandlestickChartDemo1 version 1.0.5. However I am getting a compile error at renderer.setUseOutlinePaint(true). (The api says that this method is available. )When I don't use it and go directly...
by lia
Fri Mar 16, 2007 2:38 am
Forum: JFreeChart
Topic: attempting to understand charts
Replies: 3
Views: 5093

attempting to understand charts

I am trying to learn how to work with the charts by modifying the example code. I have changed the PriceVolumeDemo1 demo and I am trying to create a chart without using the ChartFactory method. I have created everything that I think a chart requires but when I run the code I get a null pointer excep...
by lia
Sat Nov 25, 2006 5:18 pm
Forum: JFreeChart
Topic: setting backgroundImage in a Struts application
Replies: 1
Views: 3482

I figured it out. I put the image in a jar file and it worked.