Search found 7 matches

by TomHart
Thu Nov 12, 2009 11:31 pm
Forum: JFreeChart
Topic: getRangeAxis() returns null..
Replies: 9
Views: 8079

Re: getRangeAxis() returning null

When a mouse event is generated, get the point at which the event is generated using the mouse event reference. event.getPoint(); This call returns you a point in Java 2D co-ordinates.... So you need to convert this point to chart co-ordinates using the following method call: valueToJava2D() or tran...
by TomHart
Fri Oct 23, 2009 9:37 pm
Forum: JFreeChart
Topic: JFreeChart hangs on Zooming
Replies: 1
Views: 2290

Re: JFreeChart hangs on Zooming

I now realized that this is leading to an "Out of Memory Exception".... This may be too critical for the product.... Can any of you guide me as to how to goa bout it?

Thanks.
by TomHart
Fri Oct 23, 2009 9:09 pm
Forum: JFreeChart
Topic: JFreeChart hangs on Zooming
Replies: 1
Views: 2290

JFreeChart hangs on Zooming

Hi,

I came across a weird behavior exhibited by JFreeChart today. I was continuously zooming out for a while and observed that the chart hangs. It did not even respond once I started Zooming in. Can you please help me understand the rootcause of this problem.

Thanks.
by TomHart
Tue Oct 13, 2009 8:26 pm
Forum: JFreeChart
Topic: valueToJava2D() returns the same 2D value for 2 diff values
Replies: 0
Views: 1997

valueToJava2D() returns the same 2D value for 2 diff values

Hi, I am using an XYPlot to plot a Time vs Price chart. I am dynamically calculating the candlestick width for this candlestick chart as shown below. public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { 1. IntervalXYData...
by TomHart
Tue Oct 06, 2009 8:21 pm
Forum: JFreeChart
Topic: Extended line on to Combined Domain XYPlot's Sub Plots
Replies: 1
Views: 3089

Extended line on to Combined Domain XYPlot's Sub Plots

Hi, I am currently using a CombinedDomainXYPlot on which there are several sub plots such as Price Plot and Volume Plot by default. This chart supports the addition of another 10 subplots like Exponential Moving Average, Moving Average1, Moving Average2, Moving Average Convergence Dovergence etc. Pl...
by TomHart
Wed Sep 30, 2009 4:41 pm
Forum: JFreeChart
Topic: DefaultPlotEditor class fails
Replies: 2
Views: 3342

DefaultPlotEditor class fails

Hi, I was playing on implementing the "Property Editors" for one of my charts and noticed that it does not take CombinedDomainXYPlot into account. In its constructor, where it tries to read the plot info such as domain axis, range axis, it only checks for an instance of XYPlot and retrieves domain a...
by TomHart
Tue Sep 29, 2009 4:54 pm
Forum: JFreeChart
Topic: XYTextAnnotation with highlighted Box
Replies: 5
Views: 8236

Re: XYTextAnnotation with highlighted Box

One thing you can do is to 1) create an annotation that draws the values need to be displayed 2) Hold a reference to this annotation 3) Make sure you remove this annotaion when a price change is notified 4) Add a new annotation with the latest values. This works for me as I need to do exactly the sa...