chartist-js / chartist

Simple responsive charts
https://chartist.dev
MIT License
13.34k stars 2.53k forks source link

any interested in a segmented line chart type? #1203

Open titaniumbones opened 4 years ago

titaniumbones commented 4 years ago

I've written a very preliminary modified Line chart type called SegmentedLine which allows a user to divide a line into segments based on an arbitrary test which can be encoded in the meta value for a point. It's not in veyr good shape ATM but it works for me. If there's broader interest I can rewrite it with an eye to merging into Chartist.js or making more publicly available through another mechanism, but I won't bother if there's no interest. The preliminary code is available here: https://github.com/titaniumbones/chartist-segmented-line ; feel free to comment here or open issues in that repo if you're intrested.

Arantiryo commented 2 years ago

Hi @titaniumbones 👋

Apologies for a (really) late reply! Chartist has recently been updated to version 1.0 so I've been triaging issues and have seen at least a couple of problems that could be solved by a segmented line chart type, mostly having to do with applying styles to separate segments.

I thought you should have this information in case you'd like to contribute the feature to the project.

Cheers!