-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The LineChart widget now supports zooming the content #133
Conversation
Pull Request Test Coverage Report for Build 776
💛 - Coveralls |
@mum4k, One very minor thing I noticed was that when you don't apply the XUnscaled option and continually fill the Series with records, scrolling will eventually start, for me it happens at about 1450 records in the Series. I'm sure you put this in as a feature but wanted to mention it just in case you didnt. The other very minor thing I noticed was under that same scenario (XUnscaled option Disabled) and after scrolling starts, you can see the left most label changing to be the right most label. (1:11 vs 00:35) I've included a screenshot of the behavior, I can attach a screen recording if you like. The interesting thing is it doesn't happen each time the graph is scrolled to the left, it happens every 1 out of 100 or so notches and ONLY happens when the graph is completely zoomed out. Almost like when the function that handles the scrolling might have a bug or its related the one you already identified #132 Edit: My screen recording provider isn't letting me upload the recording for some reason, I'll try again tomorrow morning. |
Thanks for the detailed testing @keithknott26, very helpful. Note that the focus only applies to keyboard events, i.e. the infrastructure directs the keyboard events to the focused widget only. Mouse events don't have the same restriction because we know the coordinates of the mouse click. Thinking about the zoom too 100% on a single click made me realize how misleading this can be. The intention is to make the user select a range (click and drag, then release). The fact that it zooms after a single click (single row highlighted) can be confusing. I have filed #135 and will fix it next. It wasn't my intention to allow the graph to scroll when XAxisUnscaled isn't set. I have tried to reproduce this, but even after pushing 3000+ values, the X axis is still firmly based at zero. I waited until 5000+ and it still didn't happen. However I believe this is related to zooming, see #136. I was also able to reproduce the behavior of the first label being misplaced and believe it is related to #136. |
Great, fyi I found one more bug (#140) which shows itself when we try to zoom into a linechart that rolls (and keep it zoomed until the zoomed portion rolls out of the view). The fix is already on its way to devel. |
Fixes #55