Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

added a max parameter to control the graph y axis per graph #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mmmkayness
Copy link

Presently the y axis maximum on graphs will be dependent on the sample of data in the time period visible to the graph. This optional parameter will allow you to fix the max height per graph.

{
"alias": "pulse-events-per-second",
"target": "pulse.pulse-events-per-second",
"warning": 100,
"critical": 500,
"max": 600
}

While you could set the max to be the critical value, that won't satisfy cases where Tasseo knows that you have a reverse threshold critical (warning higher than critical).

@obfuscurity
Copy link
Owner

I'm 👍 on the concept, but the implementation looks flawed to me.

Shouldn't this default to something like this.max = this.max || null and only set max on the Rickshaw object if max != null?

@Mmmkayness
Copy link
Author

Please forgive the implementation, it was in haste, and not my forte. I
believe the Rickshaw default is 0 if max is not set, a null check may well
be more transparent in code though.

I was digging through my old hacks and thought I'd submit this one.

On Friday, January 24, 2014, Jason Dixon [email protected] wrote:

I'm [image: 👍] on the concept, but the implementation looks flawed to
me.

Shouldn't this default to something like this.max = this.max || null and
only set max on the Rickshaw object if max != null?


Reply to this email directly or view it on GitHubhttps://github.com//pull/79#issuecomment-33243754
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants