obfuscurity / tasseo

Live dashboard for Graphite
Other
1.53k stars 127 forks source link

@obfuscurity => Add ability to scale charts #93

Closed ilyakava closed 10 years ago

ilyakava commented 10 years ago

I have a few metrics that are increasing in increments that are a very small proportion of the metric, ex: [3.0, 3.0001, 3.0002, 3.0003...]. Since the default minimum of Rickshaw is 0, the graph for this kind of data looks like:

screen shot 2014-12-05 at 5 04 32 pm

This PR adds a change where the minimum value on the graph will be the minimum value in the metric y values, if the optional metric arg scale = true is set in the dashboard. The same graph will then look like:

screen shot 2014-12-05 at 5 04 13 pm

which is more informative.

Since this is a display issue, I chose to change the min value on the graph rather than manipulate the actual datum with some sort of function like transform.

obfuscurity commented 10 years ago

Other than those minor documentation nits, :+1: from me. If you don't mind cleaning those up we can merge this in.

ilyakava commented 10 years ago

@obfuscurity you got it! Amended.

obfuscurity commented 10 years ago

Thanks!