Scripts in posts?

Looking at the script, you can’t run it globally. It requires loading on place with options.

I made a simple TC: GitHub - Arkshine/discourse-tradingview-chart

To make it easy to change the options, you can copy and paste them from the site directly inside the [wrap]..[/wrap].

By default, it forces the aspect-ratio to be 16/9, it will take all the width space, and the height is automatic. The script allows specifying a width/height, it will work as well.

I would suggest using show_popup_button: true option. It will provide you with a way to view the chart in fullscreen in a new window.

image

I added two options:

6 Likes