Replies: 2 comments
-
Can you add some code example so I can better understand what you have tried and what you want. You can use codesandbox |
Beta Was this translation helpful? Give feedback.
-
Not sure if you are calling the plot on a useEffect. You need to wait till the component is rendered to use the div id.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a React SPA app. At one page I have a component and inside it
when call inside component dataframe.plot("plot_div").bar({ layout, config}); it is pointing to parent of the component (page where component is laying) not that expected inside component.
Is there something misunderstandig for me or what is doing wrong?
Br. Timo
Beta Was this translation helpful? Give feedback.
All reactions