Search found 27 matches

by JGoodwin
Sat Apr 06, 2013 3:07 am
Forum: JFreeChart
Topic: Raising tooltips when mouse is not exactly over the entity
Replies: 3
Views: 4954

Re: Raising tooltips when mouse is not exactly over the enti

mkivinie,
Thanks, I'll have a look at that.
/jwg
by JGoodwin
Thu Mar 21, 2013 4:45 am
Forum: JFreeChart
Topic: Dynamic update of text on a chart: impossible?
Replies: 2
Views: 3966

Re: Dynamic update of text on a chart: impossible?

Thanks paradoxoff. I never heard of the overlay stuff; I'll have a look. I'm using the ChartMouse mouse-motion listener. Works fine. I have a DateAxis, and I don't need to identify the entity I'm over, I just need the date the mouse is over (the x-coord). Then I go back to my application data and ge...
by JGoodwin
Wed Mar 20, 2013 10:11 pm
Forum: JFreeChart
Topic: Dynamic update of text on a chart: impossible?
Replies: 2
Views: 3966

Dynamic update of text on a chart: impossible?

The charts on Yahoo and Google finance have a small text somewhere that shows the data for the x-coordinate under the mouse, as you move the mouse. You can see the Yahoo implementation of this at http://finance.yahoo.com/echarts?s=AAPL+Interactive#symbol=aapl;range=1y;compare=;indicator=ke_sd+volume...
by JGoodwin
Tue Mar 19, 2013 6:54 pm
Forum: JFreeChart
Topic: Raising tooltips when mouse is not exactly over the entity
Replies: 3
Views: 4954

Re: Raising tooltips when mouse is not exactly over the enti

Upon further study, I see that the code I was looking at (in ChartPanel.mouseMoved etc) has nothing to do with raising tooltip balloons. The tooltip stuff is all handed off to the Java runtimes, so the matching code is entirely inaccessible and hardwired to do the exact match. Oh well. ChartPanel.mo...
by JGoodwin
Tue Mar 19, 2013 4:47 am
Forum: JFreeChart
Topic: Raising tooltips when mouse is not exactly over the entity
Replies: 3
Views: 4954

Raising tooltips when mouse is not exactly over the entity

My charts are stockmarket charts but the question is general for JFreeChart. It's really hard to raise a tooltip with the mouse. The charts have hundreds or thousands of entities, many of them only 1 pixel wide (OHLC bars, volume bars, dots from DotRenderer etc). Raising a tooltip is nearly impossib...
by JGoodwin
Tue Jun 05, 2012 2:27 pm
Forum: JFreeChart - Stockmarket
Topic: Zooming in x, autoranging in y
Replies: 4
Views: 46245

Re: Zooming in x, autoranging in y

Autoranging is designed to work through the findRangeBounds(XYDataset) method of the renderer associated with the Dataset. For XYLineAndShapeRenderer this works fine. For HighLowRenderer, it fails. The difference is that XYLineAndShapeRenderer returns the range of Y values found in the dataset WITHI...
by JGoodwin
Sun Jun 03, 2012 6:28 pm
Forum: JFreeChart - Stockmarket
Topic: Zooming in x, autoranging in y
Replies: 4
Views: 46245

Zooming in x, autoranging in y

I have various financial charts, all XYPlots, all using a DateAxis for the x-axis. They may have several datasets and several axes, for example an OHLC and one or two moving-averages mapped onto a NumberAxis (price axis) on the left and a trading volume dataset, mapped onto another number axis (volu...
by JGoodwin
Fri Nov 18, 2011 5:28 pm
Forum: JFreeChart - Stockmarket
Topic: DefaultHighLowDataset: filtering data
Replies: 1
Views: 11167

Rephrasing the question

Having studied the source code further, let me rephrase my question. Suppose I tried to write my own class similar to DefaultHighLowDataset, but just storing the arrays I have, instead of copying them. The rest of JFreechart -- all the drawing routines and what-not -- presumably assume that they can...
by JGoodwin
Fri Nov 18, 2011 4:52 pm
Forum: JFreeChart - Stockmarket
Topic: DefaultHighLowDataset: filtering data
Replies: 1
Views: 11167

DefaultHighLowDataset: filtering data

I want to use DefaultHighLowDataset because I already have the relevant price and volume data in parallel straight arrays. However, my arrays have entries for non-trading days. Such entries have a legit Date, zero Volume, and NaN in the four price fields. DefaultHighLowDataset throws an exception on...
by JGoodwin
Sun Sep 13, 2009 9:58 pm
Forum: JFreeChart
Topic: Accelerator key on ChartPanel in Swing?
Replies: 3
Views: 3681

Re: Accelerator key on ChartPanel in Swing?

MUCH better.

Many thanks

Jim
by JGoodwin
Sun Sep 13, 2009 8:39 pm
Forum: JFreeChart
Topic: Accelerator key on ChartPanel in Swing?
Replies: 3
Views: 3681

Accelerator key on ChartPanel in Swing?

Hello all, I have a subclass of ChartPanel and I want it to respond when the user types a backspace by reverting the chart to a previous state. How do I go about making the chart respond to backspace? My first idea was to override createPopupMenu from ChartPanel and add a new item "Back" to that men...
by JGoodwin
Wed Sep 09, 2009 10:24 pm
Forum: JFreeChart
Topic: Bug/suggestion for mouse wheel zooming
Replies: 1
Views: 2097

Bug/suggestion for mouse wheel zooming

Hi, I found it unexpected that ChartPanel.setRangeZoomable(false) does not affect mouse-wheel zooming. I dont' see any obvious design motivation for that, so I suppose it's just an oversight. The fix seems simple: MouseWheelHandler in handleZoomable should check Chartpanel.isRangeZoomable before cal...
by JGoodwin
Tue Jul 21, 2009 6:53 pm
Forum: JFreeChart
Topic: NPE in ChartPanel.displayPopupMenu
Replies: 1
Views: 2380

NPE in ChartPanel.displayPopupMenu

This isn't very important but FWIW: I got an NPE in ChartPanel.displayPopupMenu line 3018, JFreeChart 1.0.13. The code there was: Plot plot = this.chart.getPlot(); I got this because I dropped the mouse (literally: I'm wearing a wrist brace and it's cramping my style) and must have clicked somehow d...
by JGoodwin
Mon Jul 06, 2009 6:05 pm
Forum: JFreeChart
Topic: How to position CombinedDomainXYPlot at given X value
Replies: 2
Views: 3322

Re: How to position CombinedDomainXYPlot at given X value

Oh man -- dunno how I failed to find that. Perfect.

Thanks
jim
by JGoodwin
Mon Jul 06, 2009 5:07 pm
Forum: JFreeChart
Topic: How to position CombinedDomainXYPlot at given X value
Replies: 2
Views: 3322

How to position CombinedDomainXYPlot at given X value

I have a CombinedDomainXYPlot, whose domain axis is (at my application level) an integer index from 0 to N. Now my program wants to pan and zoom so that a given X-axis value, xTarget, is centered, and zoom so that a given range, say xWidth, is shown. Is there an example of how to do this cleanly? (T...