Hi,
I could not find any mention of trend cursors in the forums or in the examples. Do they exist? If not has anyone made one?
A trend cursor is a vertical bar on an XY plot that can be moved around. Values under the bar are displayed in seperate components. They are essential for displaying historical data (X axis is time).
Perhaps JFreeChart calls them by another name, I can only hope.
Thanks.
trend cursor
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You might be able to get away with using crosshairs to do this. There are a couple of demos included in the "premium" demo collection (available with the JFreeChart Developer Guide) that you might want to look at:
CrosshairDemo1.java
CrosshairDemo2.java
CrosshairDemo3.java
CrosshairDemo1.java
CrosshairDemo2.java
CrosshairDemo3.java
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


You can use Horizontal/Vertical Trace if you really want to use move instead of click. But there are down sides for this, repaint() may not work as expected.
Refer to my work around :
http://www.jfree.org/phpBB2/viewtopic.p ... ght=#27132
Refer to my work around :
http://www.jfree.org/phpBB2/viewtopic.p ... ght=#27132
--
RCDran
RCDran
Thanks for all the help. I am presently evaluating JFreeTrend for use in an HMI. It seems to be holding up fine on the performance end so far, a timeseries chart with 4 series each with 1440 data points still manages a 1 second refresh rate on the target hardware.
As for functionality I will need to add mulitple trend cursors that can then be dragged around the chart with the mouse because having a JSlider for each trend cursor will eat up too much screen real estate. The trend cursors will have to be dynamically added with a double click action and each will result in a popup dialog containing a table showing the data for all the series under the trend cursor.
If you see anything in the above requirements that is impossible due to architectural reasons please let me know.
Thanks again.
As for functionality I will need to add mulitple trend cursors that can then be dragged around the chart with the mouse because having a JSlider for each trend cursor will eat up too much screen real estate. The trend cursors will have to be dynamically added with a double click action and each will result in a popup dialog containing a table showing the data for all the series under the trend cursor.
If you see anything in the above requirements that is impossible due to architectural reasons please let me know.
Thanks again.