Recharts: Question: Bar within a bar or "overlayed" bars

Created on 14 Mar 2017  路  3Comments  路  Source: recharts/recharts

Question: Is it possible to configure a bar chart so that one of the bars appears within/on-top-of another bar (or a bar stack)? Something like this:

image

Most helpful comment

FYI: the barGap property of can be set to a negative value to overlap the bars. Haven't seen an example for this nor was it immediately obvious, so thought I'd mention it here.

https://codepen.io/dustryder/pen/qBNMgLJ

All 3 comments

@Eric24 You can add two XAxis to render this kind of charts.

Similar issue

I've been looking for a similar feature, I tried using two X axes, but it doesn't seem to produce the desired effect: https://codepen.io/nahushf/pen/mgZgoG

FYI: the barGap property of can be set to a negative value to overlap the bars. Haven't seen an example for this nor was it immediately obvious, so thought I'd mention it here.

https://codepen.io/dustryder/pen/qBNMgLJ

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick-lewandowski picture patrick-lewandowski  路  3Comments

jshamley picture jshamley  路  3Comments

alexandersoto picture alexandersoto  路  3Comments

manishjohar picture manishjohar  路  3Comments

patientplatypus picture patientplatypus  路  3Comments