Cannot get ReferenceArea to work with LineChart or BarChart #4594
Closed
KresimirJurkovic
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I am following this example from recharts: https://recharts.org/en-US/examples/HighlightAndZoomLineChart
Seems straightforward, but when setting and providing refAreaLeft and refAreaRight to ReferenceArea, nothing is being drawn on the chart. Does anyone have any working example of ReferenceArea alongside Shadcn chart components? I tried adding simple ReferenceArea with initial x1 and x2 values to examples found on shadcn charts docs, but with no luck :(
Beta Was this translation helpful? Give feedback.
All reactions