Skip to content
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

Explicit min/max for sparklines and runcharts? #31

Open
Fusty opened this issue Aug 6, 2019 · 3 comments
Open

Explicit min/max for sparklines and runcharts? #31

Fusty opened this issue Aug 6, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@Fusty
Copy link

Fusty commented Aug 6, 2019

Can we explicitly set the min/max on the scale for sparklines and/or runcharts? I've tried and it doesn't seem to respond. I should probably just use gauges, but I like seeing the history. I'd just like to define the vertical axis' min/max.

@sqshq sqshq added the enhancement New feature or request label Aug 7, 2019
@vipau
Copy link

vipau commented Aug 22, 2019

This is so useful! I was trying to display CPU percentage (that's always from 0-100) but a gauge doesn't cut it for the reason you mentioned.

@spice0xff
Copy link

spice0xff commented Sep 29, 2019

As a temporary solution:
items:
- label: max
sample: echo 1
- label: min
sample: echo 0
- label: CPU usage
sample: echo 0.$(wmic cpu get LoadPercentage | tr -s '\r\n' ' ' | cut -b 16-)

@deefdragon
Copy link

To add to the temporary solution posted by @spice0xff you can use color: 16 to make them invisible (assuming black background). It also makes the legend invisible.

the biggest downside of this is that the minimum and maximum workaround only works on something know to be between those values. Percentages for example. It doesn't allow for a cutoff if something ls well outside the expected range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants