Menu

#1146 Zoom doesn't work for certain data formats using XYPlot

1.0.x
open
nobody
None
5
2015-11-26
2015-11-26
David Hill
No

I've been dealing with inability to zoom in my project for years, today I tried to create a simple demo to submit the bug. I created data using a sine wave and found that everything worked perfectly. I made the sine data match the min/max values of my data and the zoom continued to work perfetly. I thought maybe it was thread related so I pushed some application data out to a CSV and read it into the same demo app and the bug was successfully reproduced. The bug seems somehow related to how the data is organized in the CSV file. The graph looks awesome at default zoom and when I restore autorange on both axis. This very small dataset actually behaves properly under some circumstances, such as using the mouse to select a block from the center of the graph, but it consistently fails to zoom the edges. Larger datasets that I use in my project result in completely unreliable zooms. Sometimes the zoom is blank, sometimes the vertical lines in my data are truncated. Complete demo project with Data.csv is attached, simply run the Main in "net.davesplanet.chart.ChartApplicationFrame" to see the graph. Use the mouse to select segments from the edges of the graph to see failure to zoom properly. As you can see from the POM I am using the latest 1.0.19 version. Email Dave at DavesPlanet dot net. Thanks!

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB