Flot plugin to support multiple threshold regions #408

Open
dnschnur opened this Issue Sep 28, 2012 · 3 comments

Comments

Projects
None yet
1 participant
Owner

dnschnur commented Sep 28, 2012

Original author: arav.psg...@gmail.com (April 01, 2010 06:18:18)

This is a flot plugin to support multiple thresholds and to display each
threshold region in separate colors.

Original issue: http://code.google.com/p/flot/issues/detail?id=329

Owner

dnschnur commented Sep 28, 2012

From dougajmc...@gmail.com on June 18, 2010 09:05:54
This is a nice plugin and exactlly what I'm looking for, I seem to run into some issue when wanting to use dynamic axis limits.

For example, I have a line with values in the range of 2.5 - 3.5, by default the chart draws my y-axis between say 0.0 - 4.0 which is ideal. However, if i then apply a threshold of abov 3.5 it seems to take the 3.5 and add ten to the value, which plots the chart all the way from 0.0 - 13.5. This then makes the difference between two values such as 3.4 and 3.6 seem like a very small change whereas in this context they are actually quite large.

Is there a way to utilise this plugin to take the maximum value of the already plotted graph as the maximum (or minimum) and not use the +10, -10 section of the code? I will have a look through to see if I can re-write things to use this, but I'm not very familiart with it, so not sure if I'll be able to.

I've attached a screenshot to show you what I mean, in case the words aren't clear!

Owner

dnschnur commented Sep 28, 2012

From arav.psg...@gmail.com on June 18, 2010 10:04:35
Heres the fix!

Owner

dnschnur commented Sep 28, 2012

From samba...@gmail.com on September 08, 2010 13:59:22
thx for this plugin. it actually really useful, but not fully baked. i think that fix is the same file as earlier except with the license stripped and missing the jQuery param being passed it.

does this mean, its no longer under MIT license, or just inheriting from jQuery's license?

i also have an issue with the threshold not drawing out the entire y-axis. i'll try and fix it, but just thought i'd let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment