Closed anbnyc closed 2 years ago
Hi @anbnyc,
Currently we only support 1 data group for bounded area chart hence the console warning,
Bounds can only be shown when having 1 single datagroup...
Issue #1248 fixes the include zero bug, we are still waiting for design approvals for enabling multiple datasets in bounded area chart.
After some discussions with designers, we have decided to not add support for multiple datasets in bounded area chart. Adding multiple bounds will result in the chart getting crowded and unreadable. On top of that, we could potentially lose the 3 to 1 contrast between the bounds on overlap.
However, if you absolutely must... you should be able to work around this by using combo charts with multiple bounded area charts. Probably, best to avoid since it may raise accessibility issues.
I'll close for now. Feel free to respond with additional info or feedback 🙂
Contact Details
No response
What happened?
When I create a bounded area chart with one group, I have lines for
min
,value
, andmax
and I can apply the optionincludeZero: false
(works as expected). When I add a second group, two things break: now the lines only show value, notmin
andmax
, andincludeZero
no longer works, which means that the areas appear below the X axis:My most preferred fix would be to show
min
,value
, andmax
lines and bounded areas for both groups. An OK alternative would be to show thevalue
lines for both groups, keep the Y axis the same, and hide the area under the curve. My least preferred fix would be to show thevalue
lines and areas and change the axis to include 0.Thank you.
Version
@carbon/charts@0.51.3
Data & options used
No response
Relevant log output
No response
Codesandbox example
https://codesandbox.io/s/pedantic-ptolemy-zs0h9?file=/src/components/chart.vue