HerySetiaji / flot

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

enhanced threshold plugin supporting above and below with different colors #265

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I needed an enhanced threshold plugin: color values *below* AND *above* a
certain value and give those outliers different colors. This is an
extension of the use case mentioned in issue 252.

Attached is a modified jquery.flot.threshold.js that supports this.
I have also made sure this works with bars.

   series: {
    threshold: {
      above: { 
      limit: number,
      color: colorspec
     }
      below: { 
      limit: number,
      color: colorspec
     }
    }
  }

Original issue reported on code.google.com by rene.pie...@gmail.com on 24 Nov 2009 at 9:13

Attachments:

GoogleCodeExporter commented 9 years ago
This is a nice idea as this funtionality would be useful. I seem to get 
straight points drawn accross my 'above' threshold though during use.

In case it's any help, you can give the effect of above and below thresholds by 
drawing the same line twice on top of each other.

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

GoogleCodeExporter commented 9 years ago
This is excellent,thank you very much for this!!by the way,missed a "," before 
"below" in your example.

Original comment by lemonco...@gmail.com on 19 Aug 2010 at 3:09

GoogleCodeExporter commented 9 years ago
Thank's for this patch. However, I've the same problem that the guy in comment 
#1.
In attachment an example to reproduce the bug.
Can you help me to fix the problem ?

Original comment by sylv...@agicia.com on 22 Aug 2011 at 2:20

Attachments:

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
thank you very much for the contribution, I will use it in the project I'm 
working

Original comment by jlngarib...@gmail.com on 24 Jul 2013 at 4:51