I'm having trouble rendering my chart within a React component #924
Replies: 1 comment 1 reply
-
Yes, it does.
Have you tried to create a container for your chart on the page so the library will affect only that DOM node? Even though the library doesn't replace anything in the provided container, but just give it a try. Btw, did you read this thread #200? Probably you'll find something useful there. |
Beta Was this translation helpful? Give feedback.
-
Everything with my chart is working beautifully -- the problem is that when I render the chart nothing else gets displayed on the page.
I've pasted below the example code that comes with the Lightweight Charts documentation. I'm pretty sure the problem is related to the first argument of
createChart
--document.body
.Does Lightweight Charts work with React?
(EDIT)
Alternatively, it would be great to be able to add a TradingView widget to my website.
https://www.tradingview.com/widget/advanced-chart/
Is there a good way to do this with React?
Beta Was this translation helpful? Give feedback.
All reactions