-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autosize does not work by default #12
Comments
Hello. Thanks for this find. I will review these changes. Currently you can use:
In fact, you can pass whatever you want to the container and get a reference to it: https://github.com/trash-and-fire/lightweight-charts-react-wrapper/blob/master/packages/lib/src/components/chart.tsx#L22 |
I think I didn't specify a default height due to cases where the user might want to set the |
I was having the same issue, but my case was a bit different as 100% wasn't working for me. This is what worked with my layout:
|
Please provide a reproducible example of the problem. I tried almost the same code and it works: https://codesandbox.io/s/codesandboxer-example-forked-48rz95?file=/example.tsx |
Maybe I misunderstood you? Do you mean that the graph should adjust to the size of the wrapper container (in this case |
I was using TradingView's example and had implemented and working like this:
So when I transitioned to using your library I tried:
And that wasn't working. When I inspected the style it showed I don't think you need to re-open this, I just wanted to mention what I did. |
The
autoSize
prop doesn't seem to work by default, I believe the wrapping div needsthat makes it work.
The text was updated successfully, but these errors were encountered: