mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[GH-ISSUE #117] Linechart: custom labels aren't placed under correct data value #77
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#77
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 @keithknott26 on GitHub (Feb 12, 2019).
Original GitHub issue: https://github.com/mum4k/termdash/issues/117
Hello,
When no custom labels are used (default label map) the labels scale along with the data as its added to the chart. So for example if you add 1440 records the labels would read 0...1440 as you'd expect.
When a custom label map is used ( HH:MM timestamps for example), the labels don't correspond with the data. The graph simply displays as many labels as will fit on the screen and then stops. No replacements or substitutions are made as data is added.
I'd expect that the labels would be substituted so that you'd end up with 00:00 ... 23:59 assuming a label map was created.
Here is what happens when you insert 1440 records and a map of HH:MM (1440 count mapped to int):
Am I doing something wrong or is this a bug?
@mum4k commented on GitHub (Feb 13, 2019):
This is indeed a bug, thank you very much for reporting it.
@mum4k commented on GitHub (Feb 13, 2019):
This was fixed in a hotfix release v0.6.1.
Please reopen if you are still seeing an issue when you build at that tag.
@keithknott26 commented on GitHub (Feb 13, 2019):
It's fixed! Thank you very much for taking care of this so quickly!
@mum4k commented on GitHub (Feb 13, 2019):
Thanks for confirming. Please don't hesitate to let me know if you see anything else that doesn't work.