CrossHair « Component « JFreeChart Q&A





2. JFreeChart - Shared Crosshair between Subplots    stackoverflow.com

I would like to know how to have a shared Crosshair. I have a CombinedXYPlot with 5 XYPlots and when I click on the graph, I would like to have one ...

3. Dynamic chart and crosshair    jfree.org

4. How to lock crosshair to the nearest data value with slider?    jfree.org

In my program when a mouse click happens, the crosshair is locking properly to the nearest data value. I want the same functionality in crosshairdemo program when the slider is moved. Currently when I move the slider bar, the crosshair is not locking to the nearest data value. What function do I need to call, so that an event similar to ...

5. Crosshair limitations and proposed solution    jfree.org

Crosshair limitations and proposed solution by gumshoe Wed Sep 14, 2005 8:49 pm The current crosshair demos, CrosshairDemo1.java for example, have datasets where the time periods are immediately consecutive. This allows chartProgress() to use TimeSeries.getIndex() and since each time period in the series is populated every call to it will result in a match. However, if your time periods are ...

6. remove or disable crosshair    jfree.org

7. Plz help with crosshair & table    jfree.org

Is there a way to find out the value of the clicked crosshair? (if using several series). I know the x,y for the chosen serie, but I would also want to know x and y for the other 2 series at the clicked x value of serie nr 1... Hope you know what I search for. Please do not ask to ...

8. "Push Left-Up" on chart; getting crosshair values    jfree.org

"Push Left-Up" on chart; getting crosshair values by flink Mon Feb 13, 2006 12:22 pm Hi! Having just purchased the Developer guide (wich is very nicely written and I recommend to everyone that use JFreeChart), I finished the first charting phase of my application in two days. Thanks David! All that is missing now is a couple of small things ...

9. How to insert 'data table' (Crosshair Demo1)    jfree.org

Hi all, Could you please show me the way for adding data table into the chart. There is 2 sample for this in demo application. Demos\Miscellaneous\Crosshairs\Crosshairdemo1 , CrosshairDemo2. I have examined the codes which belongs the Crosshairdemo1. But I couldn't draw the table. Please tell me the way or send a sample code part.. Regards, Onder.





10. CrossHair    jfree.org

11. CrossHair    jfree.org

Does any one know how to have a slider or bar which shows the x y coordinate value below the chart, similar to example give demo jar of crosshairdemo1 and crosshairdemo2. The code given by david on koders was built on older library files which no longer exits in the latest version of jFreechart. Can any one help ??? Please...

12. advanced crosshair    jfree.org

Well, sorry about the licensing issue. I will upload the JFreechart related library and my override classes to the site inside the Help column (I suggested), there will be a link beside the 'disclaimer', I will also post the LGPL license as well, please give me some time (recently go holiday)... The latest date to post is 31/8/06, but I will ...

13. Crosshair draw    jfree.org

14. crosshair with two ranges    jfree.org

Hi everyone, I have a timeSeriesChart with a range on the left and one on the right. I have two datasets that respect each one of the range. I enable the crosshairs for the plot that contains the 2 datasets but the chart use the same range (the one on the left) to display the crosshair. Is it possible to specify ...

15. Crosshair    jfree.org

by heprom Tue Nov 28, 2006 4:02 pm I've just commited a patch which add the cross hair to the swt code, please try it. you can download a copy of the ChartComposite on cvs or apply the following patch: ### Eclipse Workspace Patch 1.0 #P jfreechart Index: swt/org/jfree/experimental/chart/swt/ChartComposite.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/swt/org/jfree/experimental/chart/swt/Attic/ChartComposite.java,v retrieving revision 1.1.2.3 diff -u -r1.1.2.3 ChartComposite.java ...

16. Crosshair limitations    jfree.org

David, I finished my implementation of a method similar to getSurroundingItems(). Instead of returning the surrounding items I just returned the item with the maximum timestamp that is <= the requested timestamp. But in fact this is the same work than getSurroundingItems. Here are my suggestions: * As you already said the getSurroundingItems method should be delegated to the (Time)Series. For ...





17. Trying to get XY-values next to the crosshair    jfree.org

Hi, I'm using a DefaultXYDataset and XYPlot. I'm also using a crosshair and I am able to query the X and Y values where the crosshair points at. But I'd also like to have the values in the near area around the crosshair, e.g. the XY directly before and after to calculate a gradiant. How can I do this? It would ...

18. Reading the Value from A Range Crosshair    jfree.org

I have a range crosshair which the user can move using a JSlider, but I cannot figure out how to read the Y value at the current location of the crosshair for a particular series. I wish to display the value in a simple JLabel so the user can know the exact number at that location. Is there simple call that ...

19. Multiple crosshair    jfree.org

20. displaying crosshair values    jfree.org

I use wzwei28s version of dynamical crosshair. Additionally I want to show the x- and y-values. Unfortunately I cannot post a picture. I have lost the background, part of the curve and the perpendicular crosshair line. What can I do? Thats my code: int xdraw=m_iX, ydraw=m_iY; g2.setColor(g2.getBackground()); g2.fillRect(iDAMinX+1, iDAMinY-9, iDAMaxX-iDAMinX-1, iDAMinY-17); g2.fillRect(iDAMinX+1, iDAMinY-8, 58, iDAMaxY-13); // for y-values g2.setXORMode(Color.black); asV = ...

21. Crosshair question    jfree.org

22. Crosshair values    jfree.org

HI, I'm using an x crosshair (locked on data) in my xy plot and everything is working just fine. I was wondering if there is a way to get the index of the x data point. I mean that instead of getting the actual value, obtain its index on the list of x-coordinates. This would be a convenience, since it would ...

23. showing crosshair state in a chart on web    jfree.org

I've been working with servlets and I needed to convert my charts to JPEG's in order to embed them with HTML on an HTTPServlet, but now since they are images, I'm not sure how to show the crosshair state when I would click on a point or move the mouse on it and see the values. What is one way I ...

24. Setting crosshair position    jfree.org

25. Crosshair intersects    jfree.org

My chart can have many TImeSeries maped to different Range axis as well mapped to different DomainAxis. This is no problem. But I need to display the range value for each curve when the crosshair is moved. I no that asking the dataset to give me the value by passing the time is not good for me because it will only ...

26. Horizontal domain crosshair disappears    jfree.org

Horizontal domain crosshair disappears by guillaume.termes Sat Dec 26, 2009 2:49 pm Hi, I would like to update dynamically a text annotation with the coordinate of the crosshairs locked on data. I found an example on the forum how to do it nevertheless I found a bug that I don't understand. I have two datasets using the same Domain Axis ...

27. Crosshair on XYBlockChart    jfree.org

28. Domain Crosshair not updated correctly    jfree.org

I have two charts that I am trying to keep in sync using ChartChangeListeners. It's working, but when moving the crosshair on one chart, the update is not applied to the other chart until I move the crosshair again -- then the cross hair updates to the last position. The simple work-around is to click once to move the crosshair, wait ...

29. getting crosshair value    jfree.org

While trying the software I came across a problem of timing. I need to pick up the crosshair value so I used the chartChanged event. It gives the value of where the crosshair was, so that the chartChanged apparently comes before the plot is actually updated. The code is public void chartChanged(ChartChangeEvent cce) { Object plot0 = cce.getSource(); if( plot0 instanceof ...