gmmoraesbr / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

Flot plugin to support multiple threshold regions #329

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is a flot plugin to support multiple thresholds and to display each
threshold region in separate colors.

Original issue reported on code.google.com by arav.psg...@gmail.com on 1 Apr 2010 at 6:18

Attachments:

GoogleCodeExporter commented 8 years ago
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!

Original comment by dougajmc...@gmail.com on 18 Jun 2010 at 9:05

Attachments:

GoogleCodeExporter commented 8 years ago
Heres the fix!

Original comment by arav.psg...@gmail.com on 18 Jun 2010 at 10:04

Attachments:

GoogleCodeExporter commented 8 years ago
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

Original comment by samba...@gmail.com on 8 Sep 2010 at 1:59

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 9:01