gionkunz / chartist-plugin-threshold

Threshold Plugin for Chartist.js
Do What The F*ck You Want To Public License
29 stars 38 forks source link

Multiple thresholds #3

Open nynsen opened 8 years ago

nynsen commented 8 years ago

What about the ability to manage multiple thresholds values?

prashcr commented 8 years ago

+1 I'm pretty noob at this, but I'll give it a try

lukelarsen commented 8 years ago

I'm in need a multiple thresholds as well.

barryvdh commented 8 years ago

Any updates on this?

gionkunz commented 8 years ago

No sorry, If no PR's coming for this, I'll have time after April at the earliest. Sorry

gionkunz commented 8 years ago

I fully support the feature though

mezzi commented 8 years ago

@Xscratch @prashcr @lukelarsen @barryvdh

Not sure if by multiple threshold values we are referring to the same thing, but I've submitted a pull request that allows you to define a variable threshold line. Take a look and see if it fits your needs.

https://github.com/mezzi/chartist-plugin-threshold/tree/dynamic-threshold

nynsen commented 8 years ago

@mezzi

Thank you for the effort, at the following link you can see a working example of what I am trying to accomplish. http://www.amcharts.com/tips/using-multiple-value-thresholds-to-color-line-graph/

As you can see there are 2 thresholds, so the graph is divided in 3 sections with 3 different colors.

mezzi commented 8 years ago

@Xscratch Ah ok, I see.

adifaidz commented 7 years ago

Any updates on this?

prashcr commented 7 years ago

I decided to give it a try, and I'm able to get the points working. However, I haven't figured out how to do lines/area yet.

https://codepen.io/prashcr/pen/kkBBao