chartist icon indicating copy to clipboard operation
chartist copied to clipboard

Z-order with line chart

Open alamothe opened this issue 6 years ago • 1 comments

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!

alamothe avatar Jul 31 '18 06:07 alamothe

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.

acicali avatar Jul 20 '21 22:07 acicali