mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #129] [MERGED] LineChart now has an option that disables scaling of the X axis #211
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#211
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?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/129
Author: @mum4k
Created: 2/16/2019
Status: ✅ Merged
Merged: 2/16/2019
Merged by: @mum4k
Base:
devel← Head:unscaled-x📝 Commits (8)
9b3edb4Refactor RequiredWidth off the Y object.feb406eRefactoring y.Details off the object.bbaf393Removing the Y object.c78bd1fRefactor XScale so we can pass in the min value.f465e11Scale and label now support X axis that doesn't start at zero.aca7abfLineChart now has an option that disables scaling of X axis.587185eUpdating CHANGELOG.52ae7d1Improving option comment and test coverage.📊 Changes
10 files changed (+928 additions, -291 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
widgets/linechart/axes/axes.go(+51 -48)📝
widgets/linechart/axes/axes_test.go(+179 -147)📝
widgets/linechart/axes/label.go(+1 -1)📝
widgets/linechart/axes/label_test.go(+77 -24)📝
widgets/linechart/axes/scale.go(+24 -17)📝
widgets/linechart/axes/scale_test.go(+124 -15)📝
widgets/linechart/linechart.go(+146 -37)📝
widgets/linechart/linechart_test.go(+303 -2)📝
widgets/linechart/options.go(+18 -0)📄 Description
Useful for applications that want to continuously feed data and make
them "roll" through the linechart.
Also exposing a method that returns the observed capacity of the
LineChart the last time Draw was called.
Fixes #123
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.