• Resolved Daelorn

    (@daelorn)


    Awesome! Thanks a lot for this plugin!

    I seem however to have an issue with defining width in % for the charts. It works fine with width=”920″, however width=”100%” doesn’t work.

    Thanks for the help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Trade Pips

    (@tradepips)

    Thanks for reporting the issue. I will fix and release an update when I have bit of time.

    Regards

    Thread Starter Daelorn

    (@daelorn)

    Thanks!

    Plugin Author Trade Pips

    (@tradepips)

    You’re welcome. Hope the new update resolved the issue.

    Thread Starter Daelorn

    (@daelorn)

    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.

    Plugin Author Trade Pips

    (@tradepips)

    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.
    Plugin Author Trade Pips

    (@tradepips)

    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

    Thread Starter Daelorn

    (@daelorn)

    Excellent idea! It’s working like a charm!
    Thanks a lot.

    Plugin Author Trade Pips

    (@tradepips)

    Glad it helped!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘width in %’ is closed to new replies.