Thanks for reporting the issue. I will fix and release an update when I have bit of time.
Regards
You’re welcome. Hope the new update resolved the issue.
Hi,
While it perfectly works now for width, I have an issue with height.
It is defined at 150px and don’t see any of the tools.
I think that ideally width should be responsive and at 100%; but we should be able to choose the height in px; the way it should have worked with the first version.
Unfortunately, it’s a limitation from tradingview. Only for the chart widget, its either 100% for both width and height (autosize) or pixel values for both. Unlike other widgets (e.g. profile, ideastream) pixel and percentage values cannot co-exist in the chart widget. In version 1.0 “%” values were bot working at all.
It has to be either “autosize: true” or “width: xxx, height: xxx”
Hope this helps.
-
This reply was modified 7 years, 9 months ago by Trade Pips.
If you are still having issues with the height, a simple fix is to check the autosize checkbox (autosize=”1″ to replace width=”xxx” height=”xxx” attrributes) and wrap the shortcode with a div element of your preferred pixel height.
This way, the chart height will stretch to fit the wrapping div.
Regards
Excellent idea! It’s working like a charm!
Thanks a lot.