chartist-js / chartist

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

Z-order with line chart #1119

Open alamothe opened 6 years ago

alamothe commented 6 years ago

For Line charts, series-a will be rendered first, then series-b etc.

However, this makes line from series-a appear under line from series-b.

Isn't the reasonable assumption that series-a is "the most important" i.e. shouldn't it be on top?

For example, for Bar chart series-a is displayed leftmost.

Thanks!

acicali commented 3 years ago

I know this is an old post, but it's true. This becomes especially apparent when switching back and forth between a chart with a single series and a chart with 2 series (e.g. "this year's sales" / "this year's sales vs last year's sales").

One can't simply reverse the order of series provided to Chartist because then the colors also change.