c3js / c3js/c3

Put bars in front of area

Open
#1,446 1 comment 1 reaction 0 assignees View on GitHub
C-feature-request
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

hello,
in charts which contain data of type bar and area, area always overlaps bars. The unwanted effect is the color change of the bar because of the area.
![barareachart](https://cloud.githubusercontent.com/assets/11871137/10793128/d6fcd2ec-7d8f-11e5-8a1c-b9c521490fa7.png)
In C3.js if I change in `c3_chart_internal_fn.initChartElements` the order between `initBar` and `initLine` then areas are overlapped by bars. This has the side effect that now lines and circle also are oberlapped by bars. So my question is, cant we draw only the area in a `` before bar. So lines and circle would be visible but the area would only be visible in undrawn areas of the chart

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.