mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #92] LineChart should not anchor the Y axis at zero #60
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#60
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 (Jan 26, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/92
Originally assigned to: @mum4k on GitHub.
This loses precision when there are only higher positive values.
The min on the Y axis should be equal to the lowest provided value.
@mum4k commented on GitHub (Jan 26, 2019):
This is now fixed in the devel branch and will be in the next release.
@activeshadow commented on GitHub (Jan 27, 2019):
This worked great @mum4k thanks!
@activeshadow commented on GitHub (Jan 27, 2019):
@mum4k perhaps make it an option that can be passed to the line chart? Some people may still want it anchored at 0... especially ones already using it for that purpose.
@mum4k commented on GitHub (Jan 27, 2019):
Thanks for the screenshot @activeshadow, glad to see this working.
That is a valid point, we can add an option to control this behaviour. I wonder which of the two should be the default. Looking at how linecharts in spreadsheets behave - they anchor at zero by default. Would you be ok with that being the default behaviour and an option to remove the zero-anchor?
That would make this change backward compatible. Let me know what you think.
@activeshadow commented on GitHub (Jan 27, 2019):
@mum4k having it be an option and making the default value be anchored at zero so the change is backwards compatible sounds great! Thanks!
@mum4k commented on GitHub (Jan 27, 2019):
PR #96 is now merged into the devel branch. It adds a new linechart.YAxisAdaptive() option. Please give it a try and let me know if something doesn't work as expected.
Thanks again for pointing out that this was going to introduce a backward-incompatible change.