nivo icon indicating copy to clipboard operation
nivo copied to clipboard

Line Layer over Grouped Bar Chart

Open sharaku17 opened this issue 2 years ago • 2 comments

Hi Guys,

I am trying to achieve a Line Chart over a Grouped Bar Chart. I followed the example in an older issue that I found here, which is shown in this CodeSandbox This is also working but I have a Problem when I use Grouped Bars and add a new entry in the "Keys" Array for the Bar. The Line gets manipulated and behaves incorrectly ( The first and last point of the Line get connected) as soon as the Bar chart is using the Grouped mode.

It looks like this: Screenshot 2022-05-26 160710

Any Idea how to solve this?

sharaku17 avatar May 26 '22 14:05 sharaku17

@sharaku17, it's hard to tell without seeing the code, Can you please share the new sandbox?

plouc avatar May 30 '22 21:05 plouc

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] avatar Sep 20 '22 16:09 stale[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

stale[bot] avatar Sep 27 '22 19:09 stale[bot]

@plouc here is an example: https://codesandbox.io/s/nivo-bar-extra-layers-forked-xg3xkf

That being said, I did found an example of a working hack. The developer here is super-positioning two individual bar and line charts: https://codesandbox.io/s/practical-pare-6oq93n

msolano00 avatar Sep 08 '23 15:09 msolano00