c3js / c3js/c3

Line Chart Threshold - Change Line Color

Open
#1,889 4 comments 10 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hello. Is there a way to add threshold values for data in line charts? That way, lines above the threshold value could change color. I've tried the data color API but only the data points change colors. This is what I am able to do so far:

Fiddle: http://jsfiddle.net/JedRW/60/
![thresh](https://cloud.githubusercontent.com/assets/23357892/20455042/53290736-ae8c-11e6-8d8f-af2ac2b1815f.PNG)

An example of what I want to achieve is this threshold plugin for Chartist.js, without the animation.

![chartistthresh](https://cloud.githubusercontent.com/assets/23357892/20454983/0a5ffed4-ae8b-11e6-92f3-c7365df5ff0c.gif)

I would really appreciate an answer. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.