Zoom 1 « Development « JFreeChart Q&A





1. JFreeChart disable zooming    stackoverflow.com

Is there an easy way to disable zoom in/out feature for XYPlot which is drawn in ChartComposite ? Overriding the zoom methods for XYPlot will be a solution but I wonder ...

2. how to add zoom functionality to chart created by jfreechart    stackoverflow.com

I have drawn a XY chart using jfree. Now i want to add zoom functionality to it. This must be done using a slider at the bottom of the chart. How ...

3. JFreechart Zoom with mouseWheelListener    stackoverflow.com

I'am using a swing JFreechart component inside my RCP application. This JFreechart zooms properly with mouseWheel when run as a swing component. But after embedding it with RCP, this zoom with ...

4. JFreeChart: Preserve zoom position when updating chart    stackoverflow.com

My program creates a time series chart using JFreeChart (via Swing ChartPanel) and allows the user to zoom into it (using the ChartPanel's standard zoom feature). The program has parameters (such ...

5. Getting Exception: "Requires xLow < xHigh" when zooming in    jfree.org

Hi, if i zoom endlessly in a diagramm i get an Exception: Code: Select all Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Requires xLow < xHigh. at org.jfree.chart.renderer.RendererUtilities.findLiveItemsLowerBound(RendererUtilities.java:76) at org.jfree.chart.renderer.RendererUtilities.findLiveItems(RendererUtilities.java:261) at org.jfree.chart.plot.XYPlot.render(XYPlot.java:3819) at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3389) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1237) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1677) at javax.swing.JComponent.paint(Unknown Source) ...

6. ScrollBar not functioning properly with Chart after zooming    jfree.org

Hello Friends, I have attached horizontal and vertical scroll bar on chart. It works fine before zooming the chart. But after zooming, scroll bar is not coming to its minimum value. That is it keeps on increasing the value on scrolling. If i move the scroll Bar in backward direction then also it is increasing the value.... If anyone of u ...

7. Zoom Demo    jfree.org

Hi, I am trying to run the PanScrollZoomDemo, and these are the errors I get: If anyone knows how to fix this please help! I think its because of the RefineryUtilites. init: deps-jar: Compiling 1 source file to /home/hydra/b/ssanford/PanScrollZoomDemo/build/classes /home/hydra/b/ssanford/PanScrollZoomDemo/src/PanScrollZoomDemo.java:566: cannot find symbol symbol : method getPointInRectangle(double,double,java.awt.geom.Rectangle2D) location: class org.jfree.ui.RefineryUtilities = RefineryUtilities. /home/hydra/b/ssanford/PanScrollZoomDemo/src/PanScrollZoomDemo.java:576: cannot find symbol symbol : method getPointInRectangle(int,int,java.awt.geom.Rectangle2D) location: ...

8. Chart Section Selection without Zoom    jfree.org

Dear FreeChart Developers, Can you please help on below question: Requirement is to be able to select part of the chart (in a Zoom-style), but not do to zooming, but perform different operation (like open new Chartpanel Frame with the selected chart section). Optional requirement is to change color of the time series lines in the selected section. I would really ...

9. chart zooming    jfree.org

Hi, When I zoom the chart with date parameter on x axis on, on the extreme zooming while zooming out, gives error saying the year should range from 1900 to 9999. I am confused about where to handle and catch this exception in the given source code. My code uses the methos zoomOutHorizontal of the previous version. I tried using try-catch ...





10. Adding zoom area to ScrollPane    jfree.org

11. Adding zoom area to ScrollPane    jfree.org

12. Limit zoom out    jfree.org

Hello All, I'm using scatterplots to display some data. I can zoom in and out with the mouse, or by right clicking on the chart panel. The problem occurs when zooming out through the right-click>zoom out>both axes. It's possible to zoom out to such an extant that the x-axis gets negative. At this point the data lose meaning because the x-axis ...

13. Zoom to specific area    jfree.org

I've been looking through the developer's guide, but I can't seem to work out if it is possible to zoom in to a specific area of the graph. As it is, you can only zoom on either the horizontal, vertical or both axes at the same time, and this zoom is centered on the center of the graph. How do I ...

14. Zoom in gant chart    jfree.org

Hello, I used JfreeChart API for creating a gantt chart. Everything work well without this case : When I have a lot of lines task (about 250 values in Domain Y), the chart in a java panel in one windows, is too condensed (I can't post the image ). I would like to know if the zoomable option in vertical and ...

15. Detect zooming in on a chart    jfree.org

16. Zooming in onto a point    jfree.org

No there isn't. It used to work that the zoom went in on the last point clicked, but a lot of people didn't like that. Now, if I remember correctly, it zooms in on the middle of the current view. It would make sense to implement both behaviours and let the user decide.





17. multiple range axes - independent zooming?    jfree.org

Hi, I am evaluating JFreeChart for use with scientific datasets. We often need XY graphs with two Y axes. I managed to create a dual axis chart with help from the forum. However, the popup menu still only shows _ONE_ range axis, and so do the Property pages. This means I have no means of changing the scaling of the second ...

18. Scaling number of points based on zoom level    jfree.org

Does JFreeChart scale the number of points plotted based on the zoom level? I ask because I have datasets of 5000000+ values which I am trying to plot as a XYLineChart (they are the sampled value of PCM frames, basically an audio file's waveform, which even at the low sampling rate of 11025hz adds up very quickly with 3+ minute audio ...

19. BUG IN JFREE CHART - zooming    jfree.org

BUG IN JFREE CHART - zooming A free public discussion forum for the JFreeChart class library. Post a reply 5 posts Page 1 of 1 BUG IN JFREE CHART - zooming by Craig Tue Oct 04, 2005 7:26 pm I have a 3dBarChart. Zooming works fine. However, JFreeChart allows you to click underneath the chart and then zoom in. ...

20. Changes in zoom behaviour and crosshair behaviour    jfree.org

Hi, I needed to make some changes to ChartPanel and XYplot to get features a customer of ours needs and wanted to ask if these are of general interest to anyone else. a) we wanted to be able to select the zoom in area starting from any starting point, not only the top left corner. The code change allows for a ...

21. zoom to point    jfree.org

22. Zooming problem w/ 3DBarChart (not working w/ Horizontal vie    jfree.org

Hi all Here is my problem: I have a 3d Bar Chart, which is initially in Vertical orientation. However, when the user goes into properties and changes the view to Horizontal, the zoom tool still thinks its a Vertical view. When the user tries to zoom the box drags as if it were vertical and then just doesn't do anything. I ...

23. Zoom doesn't respect specifications    jfree.org

Code: Select all /** * Zooms a particular axis on a point, workaround to the centered version of ValueAxis * @param axis * @param x * @param zoomFactor */ public static void zoomOnPoint(ValueAxis axis, double ...

24. chartPanel and zooming    jfree.org

Hi, we have application where user can not draw his lines on mouseevents. to do that i override the paintComponent(..) in chartPanel and it works great. but when user zooms by drawing the rectangle with mouse, that lines does not get zoomes, because I am drawing them in paintComponent(..) method which is still has original bounds, so my question is, how ...

26. Zooming broken    jfree.org

27. Bug in the zoom functionality?...    jfree.org

28. Zooming problems with LogaritmicAxis    jfree.org

Zooming problems with LogaritmicAxis by jmog Tue Nov 29, 2005 11:29 am Hi, I have an XYLineChart with both domain and range axis set to logarithmic and the problem is that when I'm zooming in the correct area doesn't show up. Also when zooming out the zoom probably calls setAutoRange(true) which loses the range I've set. Does anyone have any ...

29. ChartPanel zooming    jfree.org

We're migrating from some legacy charting to JFreeChart and need to keep the functionality as similar as possible. The only thing we can't seem to get consistent is the zooming in the ChartPanel. It seems that zooming can only be done if the zoom rectangle is drawn from left to right. After looking at the code it seems to be quite ...

30. zooming in combined charts    jfree.org

Thank you David! the zooming was working properly in the simple charts: centered on the middle of the chart, and also around the selected value(this with the help of some posts from this forum). In combined chart I tried to zoom around a selected point, and not using the mouse dragging action (this is perfectly working!). But I cannot modify the ...

31. Remembering Zoom    jfree.org

I am writing a graphing application that needs to be able to remember the zoom so that it can be reapplied. Because of the dynamic nature of the data as well as the user ablity to choose the type of graph and the exact datasets to be graphed the easiest way to implement the graphing is to constantly be resetting the ...

33. zooming and max ranges    jfree.org

i extended NumberAxis to get what i wanted to do. maybe not the cleanest solution but for those of you who also have this question here is a way to do it. Code: Select all import org.jfree.chart.axis.NumberAxis; import org.jfree.data.Range; public class LimitAxis extends NumberAxis { private double upperLimit; private double lowerLimit; ...

34. zoom without a autorange    jfree.org

Hi! I'm having exactly the same problem as this - I'm showing a graph of temperatures, and when it initially draws the graph, the y axis range is set to 10 degrees either side of the maximum and minimum temperatures. If I zoom in and zoom out again, the y axis reverts to its default range, which is the maximum and ...

35. Problem XYStepChart ChartFactory Zoom    jfree.org

Hello! I have a little problem with the method ChartFactory.createXYStepChart(). For my Application I only need to have a horizontaly zoom and not a verticaly. I have read on Internet that with the XYStepChart() created with a ChartFactory it was not possible. Witch properties can I modified to have only the horizontal zoom? Can I do that without making a "manual" ...

36. Zooming features in a web page?    jfree.org

Hi, I am looking at using JFreeChart in Web Pages. I have read the posts about Map and Tooltips generations, the JSF creator, etc... but I need to offer more interactivity features for Charts in web pages (without using Applets): . Zooming in (by selecting an area) . Scrolling through the zoomed chart . Zooming out (by selecting a zoom out ...

37. question about zoom(urgent)    jfree.org

38. Problem with Zoom in functionality    jfree.org

I have two problems with the JFreechart. I have successfully implemeted the JFreeChaart in my application and it is a wonderful app. 1. I set the ZoomRange property to stop going to far when the user zooms, as suggested before to me but it didnt work. I will explain the situation. I am looking at Jan 2006 ----Jan 2007 of the ...

39. Zoom question    jfree.org

Hi! I have one problem. I'm using a XYPlot to show some variables from a database. In database can be stored thousands of values of these variables, but I only shows 1000 of them. The problem is that when I make a zoom I want to know the X values between which the zoom is selected. Knowing these values, I want ...

40. Zoom across multiple charts    jfree.org

41. Chart zoom occurs without user input.    jfree.org

Hi all. I am using Java 1.6 with JFreeChart 1.0.1. I have developed a multi threaded application that receives input from multiple clients that are connected through a socket. Each client has multiple terminals associated with it. My application maintains a count of the number of terminals associated with a client over time. This data is displayed in a bar chart ...

42. Undo function for zoom?    jfree.org

Hi! Is there any simple possibility to have some kind of 'undo' function during zooming the chart? When I unzoom the chart, domain axis have full range (I turned off the range axis zooming). But some people want to unzoom to last zoom not to have full domain range. Maybe the simplest way is to remember domain axis bounds and use ...

43. How to stop auto zoom out    jfree.org

Hii My chart shows a dynamic curve which updates once a minute. My question is when a user zooms in to a portion of the curve, when the curve updates, it zooms out automatically. Is there a function which can stop the curve from zooming out? I've looked at the ChartPanel class and cannot see anything suitable. Thanks. Phil

44. ChartPanel zooming box    jfree.org

46. Create a chart that is the zoom of the other    jfree.org

Hello, I would like to create a chart plot which is a selection of a part of the graph. First I would like to create that for a constante duration, and after I would like chose on the graph which and how long are the data display on my "zoom chart". I have seen the class TimePeriodValue, this class can permit ...

47. problem with zoom    jfree.org

hi friends, i am using dynamic jfree charts and when i zoom in or zoom out both axes and domain axes time axis is not moving but when i click auto range both axes its plotting again....range axes is working fine when i zoom in or zoom out...can any one please help me how to do it as soon as possible... ...

48. problem with zooming    jfree.org

Hi I want to change the behaviour of my combinedDomainPlot such that if i perform the following actions on the plot: a. zoom in/out b. select an area by using the mouse to draw rectangle c. or select a range on the the domain axis Only the domain axis changes, i want the range axis to stay the same. The only ...

49. a dashed stroke will eat too much memory after zooming    jfree.org

java.awt.BasicStroke stroke = new java.awt.BasicStroke(1f, java.awt.BasicStroke.CAP_SQUARE, java.awt.BasicStroke.JOIN_MITER, ...

50. zoom on category chart    jfree.org

Hello, I'd like to bump this for a bit more information. We are in a similar bind, we have a bar chart created using the ChartFactory.createBarChart() method. We typically have 8-10 categories, but as many as 50 data points in each category. This produces a dense chart, where the bars are only 2 or 3 pixels across, which makes it difficult ...

51. Zoom in/ Auto Range problem    jfree.org

Hi all, I am having following problem, I have the ranges to Y axes 20 to 100 and Y axis with dates. if I zoom in some area in the graph ranges changing automatically according to the zoom thats fine. But after zoom in if I click Auto Range of both axes my original Y setting are changing according to the ...

52. To much memory usage after zoom in    jfree.org

JFrame frame = new JFrame("Chart-Test-GUI"); Container con = frame.getContentPane(); ChartPanel panel = createMultipleAxisChartPanel(); panel.zoom(new Rectangle2D.Double(x, y, w, h)); JFreeChart chart = panel.getChart(); int width = 766; int height = 356; byte[] bytes = ChartUtilities.encodeAsPNG(chart.createBufferedImage(width, height)); con.add(panel); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent ec) { ...

53. Zoom out Notification    jfree.org

54. Zooming    jfree.org

Hi, We are facing one issue with zooming feature of JFreeChart. We have a set of metric. When we select one metirc , the currespoding chart will be displayed. This is working as expected. Suppose one metric has been selected and curresponding chart also displayed. In that chart we tried to zoom. So this also seem to be working fine. If ...

55. Zooming out to default    jfree.org

Hi I have a problem with zooming out. i've got a chart with logarithmic domain axis. Im' zooming in with the left mouse box selection. it's fine. I want to zoom out to the default view of a chart with one button from a popup menu i've defined myself. what sould i do?

56. Restore Zoom Point (zoom out) overriding ChartPanel patch    jfree.org

Override ChartPanel for restore zooming points (Zoom out / Zoom back to previous point/rectangle) Usage: Can implement in different chart, either horizontal/vertical/both zoom Sample demo can view Order Manager System(OMS) link at http://vnetcode.org Event: When user right-click it will restore previous zooming point Testing senario: User can zoom n times...then everytime it right-click it will restore back to previous zooming point/rectangle/plotArea ...

57. Disable zooming    jfree.org

Hello, I'm new to JFreeChart and very happy about having such a powerful framework. One question: I'm using the class org.jfree.experimental.chart.swt.ChartComposite to use JFreeChart with SWT. Everyting works fine so far. Could anyone please tell me, how I can disable the zoom-feature. Can I do this over the ChartComposite-object or over the embedded JFreeChart-object? Thank you in advance, Rudi

58. Automatic shape scaling when zooming?    jfree.org

Hi out there, I googled and searched within here a lot, but I did not find anything concerning an automated shape scaling when zooming will be performed. Thus, I assume, JFreeChart is not capable of doing that, right? If so, if I would like to implement this, how would I have to do best? Remark, I use XYLineAndShapeRenderes -> should I ...

59. zoom to always include zero    jfree.org

Hi, I would like to be able to zoom in and out of plots but to always include zero in the view. I have tried setting setAutoRangeIncludesZero = true which ensures that the range axis includes zero - but only until I zoom. Is there an option that I'm missing or is it necessary to write a custom zoom class? Thanks, ...

60. Problem zooming on the web    jfree.org

Problem zooming on the web by desibel Mon Nov 26, 2007 2:56 pm Hi, I'm creating a web application that uses jfreechart. The chart is generated on the application server and streamed to the webclient as a png. On the client I have a javascript that gives us functionality to mark and zoom on the chart. The problem I have ...

61. Zooming on values with X = 0 bug    jfree.org

62. Zooming and panning    jfree.org

63. AutoRange and Zoom    jfree.org

Hello there! I'm currently using JFreeCharts to plot some Times Series data, and have noticed that when I zoom into the chart and then zoom back out, the Y-axis ranges I specify for the chart are no longer adhered too. It's almost as if autorange gets set back equal to true even though I explicitly turned it off. Any ideas on ...

64. How to retrieve data after zoom    jfree.org

65. TIP: using the zoom rectangle for your own purposes    jfree.org

Hopefully, the following might be of interest to some of you, and save you some time figuring this out for yourself.... I've figured out how to get the "zoom rectangle" to draw without actually zooming the chart. By the way, I am using JFreeChart 1.0.9. For my application, I am implementing CTRL-[mouse-zoom-rectangle] for a custom non-zooming action. If anyone is interested, ...

66. Disallow zooming over legend    jfree.org

Yes, this is with 1.0.9. I'm using a TimeSeriesCollection dataset with an XYPlot. The JFreeChart is then added to a ChartPanel, pretty basic stuff really. If you start the zoom from inside the graph then the rectangle stops at the axis, so that is good. But if you start to click on the legend, then no rectangle is drawn, but still ...

67. Zoom issues    jfree.org

Zoom issues by Rob F Tue Jun 10, 2008 4:46 pm I know the zoom code is a bit iffy, how zooming out doesn't restore a preset value and all that. Well, the boss wasn't happy so I'm writing my own zoom functions in essence. (by extending the XYPlot class to handle a specific circumstance, rather than hacking at the ...

68. Allow zoom in to particular range    jfree.org

69. Zoom out behaviour    jfree.org

I have an XYLineChart which has several XYSeries lines. Initially the x-axis and y-axis are set by JFreeChart to show the extent of the data. That is, on domain it goes from xMin to xMax and for range from yMin to yMax. My yMin is 0. If I use the right-click context menu to zoom out. The yAxis will zoom such ...

71. I want to zoom my chart using my custom button.    jfree.org

Hi, JFreeLots, I want to use the zoom feature to my drawn graph. (TimeSeries). This zoom should work on a click of button. Say zoom out for multiple button clicks on ZoomOut button and same with Zoom In. Please let me know whether any similar post already exist? If not does any one tried this way and if so please let ...

72. Added : dynamic data, zooming, adjust, move...    jfree.org

Hi all, I've had a project where I needed to show dynamically changing data, so i played with JFreeChart package for a while and I've made an extension (without modifying the core package) which supports this: - dynammically changing data. Some new DataSources designed that support this (and many more:)) - Limiting the count of the points / bars shown and ...

74. Can't zoom around an anchor - getting NoSuchMethodError    jfree.org

Can't zoom around an anchor - getting NoSuchMethodError by Shurikane Tue Oct 14, 2008 5:01 pm Using jcommon 1.0.14 and jfeechart 1.0.11 The chart is coming along well! Now I have another problem. I have implemented a zoom feature based on the mousewheel, which looks something like this: Code: Select all chartPanel.addMouseWheelListener(new MouseWheelListener() { ...

75. Zoom notification    jfree.org

Hi, i have a chart, and i don't like to disable zooming possiblilty, but i'd like to get a notification, when the user with the right-click menu or with mouse zooming into the chart (eg. i'd like to create an alert or update a label). I've tried creating chartMouseListeners, but they are running too much times. How can i create such ...

76. Domain Zooming    jfree.org

I searched for an answer to this, but didn't find anything. How do I make a chart zoomable on the domain? If I right click on the chart and look at the "Zoom In" menu, I only have the option for "Range Axis". I would also like to zoom in on the domain. Thanks.

77. Chart doesn't display the new data after zooming in    jfree.org

How to ensure that even after zooming in or zooming out the new data which is getting added to the dataset keeps appearing on the screen. Domain Axis = Time Suppose the data is till say 1:00 pm Now if i zoom in from 12:30 pm to 1:30 pm the data which is getting added should get displayed on the screen. ...

78. disable zooming    jfree.org

79. zooming button how to?    jfree.org

80. How to keep zoom while updating data ?    jfree.org

Hi, In my program I need to show original signal data: Optical spectrum (OS) and modified data: Low pass FFT of OS (LPFFTOS). When user update filter parameters the LPFFTOS changes and the plot is updated but in order to select proper parameters user must work with zoom. Every time I update Chart zoom resets - is there any way to ...

81. Problem with Zoom and Fixed Range    jfree.org

Hi, I am using in my project an XYLineChart, I have set the range axis to have a fixed range. When I zoom back out(Unzoom), all the axes are reset to auto range - is there a way to ensure that the original ranges are restored after resetting the zoom? Thanks in advance

82. Zoom&Pan example    jfree.org

83. drag zoom - outline vs shade block    jfree.org

I have recently upgraded from 1.0.9 to 1.0.13. I noticed when you use the mouse drag to zoom in on the chart, it used to be an outline box showing the zoom area. Now it is a shaded rectangle region as I drag to zoom. Is there a way to change that back to the outline rectangle?

84. Zoom in & Zoom out functionality    jfree.org

85. Zoom In to a certain data point    jfree.org

I tried several different ways to zoom into a point on JFreeChart and I keep getting a weird reaction zoom to somewhere totally different than the data points I'm giving it. right now I am trying the rectangle but still not working. Help would be really nice! Thanks heres part of my code. list.addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent e) { System.out.print(list.getSelectedValue()); ...

86. Limit zoom out?    jfree.org

We've had issues when a user has continually used the mouse wheel to zoom out of a Time Series Chart until the application has 'frozen'. Running JConsole on this 'frozen' application reveals that the Chart is actually painting on the EDT but taking a very long time to do so. Is there a way to limit the amount of zoom that ...

87. Reimplementing zooming mechanism in ChartPanel class    jfree.org

With reference to the project "Reimplement the zooming mechanism in the ChartPanel class so that it remembers the initial zoom state and also the zooming history.", We have the following questions, i) The initial zoom state here refers to the state when the chart is shown initially on the screen (before any zoom action is done) or does it refer to ...

88. JFreeChart hangs on Zooming    jfree.org

89. zoom and rescale    jfree.org

Re: zoom and rescale by moonstar Tue Nov 17, 2009 3:19 pm i gave this a reasonable try, but i think this feature is under development. in particular, the FIXME below (from TimeSeriesCollection) Code: Select all /** * Returns the bounds for the y-values in the dataset. ...

91. Zoom Out with Right-Click    jfree.org

Hello to everybody, i am new in this forum and this is my first post. I have an JFreeChart with many lines. This will work fine and the zoom in with the left mouse is also very well. But i want to zoom out with the right click. I have found some solutions but they don't work. I think this is ...

93. Zoom rectangle flicker    jfree.org

In my application, I call ChartPanel.setMouseZoomable(true, true); When using the mouse to zoom in on my chart data, the gray rectangle that indicates the zoom area occasionally flickers back and forth between gray and white. I see that there is a post from 2002 titled "Interactive zooming problem" that also mentions this flicker issue. Is there any way to prevent this? ...

94. Another autorange / zoom question    jfree.org

If I turn on autorange, it sets the range to the min / max of the dataset + some edge region. However, if I zoom in on a section of the data by calling: chart.getXYPlot().getDomainAxis().setRange(range); Is there a way to have the chart auto-range to as closely as possible enclose the min / max of the *displayed* data?

95. How to block Wheel Zoom Out    jfree.org

96. zoom in another window    jfree.org

Maybe you could give us an example of how you are trying to implement this? Just a few lines of code can be helpful to see how far along you are. Basically, when you zoom, at some point methods like zoomRangeAxis and zoomDomainAxis (don't pin me down on the exact names, I did not look it up) are called with a ...

97. Zoom problem    jfree.org

Re: Zoom problem by Yoko Tue May 11, 2010 11:44 am Ok thx and sorry Here a part of my code, i think the most important where i have my error : Code: Select all final CategoryItemRenderer renderer = new BarRenderer3D(); renderer.setItemLabelsVisible(true); ...

98. Zoom out to a specific range?    jfree.org

99. Zoom Left    jfree.org

Hi I am working on some numerical series. I need to override the zoom function so that when I zoom-out the right side of the chart doesn't move and the zoom factor is applied to the remaining part. I'm working with a XYStepRenderer and can't organize the data on categories. Any suggestion? Thanks

100. Zooming in function    jfree.org