Recharts Skip a Bar

纵饮孤独 提交于 2019-12-12 21:02:21

问题


I have some data that looks like this:

[{ a: 15, b: 30, c: 25, d: 12 }, { a: 15, c: 25, d: 12 }]

I want to render a barchart that skips the space in between a and c if b is undefined, but will still render b if it is defined.

Basically like the two bar chart groups in this image where the orange bar is skipped because there is no data for it

来源:https://stackoverflow.com/questions/49909093/recharts-skip-a-bar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!