-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe/explain the bug
legend patterns dont show anymore after upgrading. bars still get the pattern defs + fill fine, but the legend symbols stay solid (or wrong). same exact chart config works on older nivo, breaks on newer nivo.
To Reproduce
i made a codesandbox with 2 versions side by side (or 2 forks):
- old deps: react 16 + @nivo/bar 0.62.0 → legend shows patterns correctly
- new deps: react 18 + newer @nivo/bar (ex 0.99.0) → legend does NOT show patterns, only solid color
same code: defs + fill for fries/sandwich patterns, legend uses dataFrom: "keys".
Expected behavior
legend symbols should reflect the same pattern fills as the bars (ex fries = dots, sandwich = lines) like it used to.
Additional context
codesandbox links:
Metadata
Metadata
Assignees
Labels
No labels