plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.91k stars 281 forks source link

[Feature Request] AreaSeries with different styles for above baseline and below baseline #74

Open 0b01 opened 5 years ago

0b01 commented 5 years ago

Currently, AreaSeries colors the area from Path/LineSeries to baseline. This is done with Polygon. It would be nice to have two different colors for areas above and below.

This makes some graphs much nicer to read.

Market microstructure visualization

Screenshot from 2019-10-29 15-55-25

Color buy volume GREEN.mix(0.1) and sell volume RED.mix(0.1)

38 commented 5 years ago

Hi, that's good idea! I am going to make this happen before next release, please let me know if you think there's anything else can be improved. Thanks!

Arttaaz commented 1 year ago

Hi I am also really interested in having this feature available! I would like to do a win rate graph with a baseline of 50% and have the area color correspond to the winning player but this is impossible right now for me.