Open titaniumbones opened 4 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!
I've written a very preliminary modified
Line
chart type calledSegmentedLine
which allows a user to divide a line into segments based on an arbitrary test which can be encoded in themeta
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.