How to set tradingView to fit mobile
How to set tradingView to fit mobile
we have used tradingView in pc Web,and it works just fine.
now we gonna to dev a mobile web.which as I know tradingView is supported.
however, when I use the demo in GitHub https://github.com/tradingview/charting-library-examples
it looks like the layout and font size are not right.it doesn't support mobile(I've set the resize:true, this may also need some configs with the tooltips?):
but the demo in official site looks just fine:
what should I config to support mobile well, thanks
(I've tried to search this type questions in SO,but got nothing)
1 Answer
1
Just add this line in index.html in the public folder
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
https://github.com/tradingview/charting_library/issues/3031
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.