mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #136] XAxisUnscaled doesn't play well with zoom making unzoom impossible #87
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mum4k on GitHub (Feb 18, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/136
When data are continuously coming in, it is impossible to fully unzoom when XAxisUnscaled.
We should return the zoom tracker back to unzoomed state once we hit the "baseX" view.
@mum4k commented on GitHub (Feb 18, 2019):
Secondly when we zoom in and out while the baseX is allowed to scroll, there is a scenario where min > max. Needs investigation:
panic: container.Draw => error: unable to draw widget *linechart.LineChart: failed to create zoomed X axis: invalid min:316, max:311, must be min <= max
goroutine 1 [running]:
main.main()
/Users/mum4k/go/src/github.com/mum4k/termdash/widgets/linechart/linechartdemo/linechartdemo.go:122 +0x6b6
exit status 2
@mum4k commented on GitHub (Feb 18, 2019):
These are two separate issues:
@mum4k commented on GitHub (Feb 18, 2019):
Fixed in the devel branch.