General questions
Have a question about the market data available in our widgets? Your question is probably answered on the Data questions page. If you are looking for a list of the languages support then have a look on the Languages page.
Potentially, the problem can arise from trying to insert the raw code dynamically, thus forcing the browser to block the embedded script execution. This may happen when injection via innerHTML occurs, for instance. Trying to dynamically inject the code with the means of certain libraries (e.g. jQuery) may also disrupt the proper initialization of the widget. If you are embedding the code on a site driven by 3rd party infrastructure, make sure to follow their instructions or ask the developer of the platform for help.
If your widget is not displayed at the expected size, check the following:
- If the Use container size setting is enabled, ensure to specify the height of the container element in your HTML/CSS.
- If Use container size is disabled, ensure that you have provided both width and height in the widget's properties.
- Ensure there are no CSS rules that could override the size of your widget or its container.
Refer to How to set widget size for more information.
There are several options, contact us using this form.
There are several options, contact us using this form.
All available widget settings are presented in the point-and-click constructor. If what you want to change is not there, contact us using this form.
Use the Use container size setting. When Use container size is on, the widget uses 100% of available width and/or height of the enclosing element. It’s very important to set a specific height of parent element for the widget to work properly. Refer to How to set widget size for more information.
When the widget is set to Adaptive mode, it automatically changes between Regular and Compact modes based on available container width.
Use the field called full-size chart URL. Paste the link to your chart pages in that field and it will redirect there instead of TradingView.
Good use case - place widget on your homepage and have users click through to your individual chart pages. Example - https://yoursite.com/?tvwidgetsymbol={symbolname}. Or use {tvexchange}:{tvsymbol} templates instead to do a link like - https://yoursite.com/{tvexchange}:{tvsymbol}.
The Ticker widget uses the Use container size parameter by default. This means that it accepts the width of the parent element. Our demo page is wide enough to show only 5 symbols. You should make the parent element wider to see all the symbols.
Please decrease the width of the widget to remove percentage change value (%). Conversely, increase the width to add it
Yes. Here are some hints:
- Copy and paste the widget script somewhere on the page: <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
- Create a container element with a set ID attribute.
- Call the new TradingView.widget() function when you want the widget to be shown. Apart from other settings, there should also be a container_id option in the parameter list. It should have the value of the previously created container ID attribute.
It is not possible to add pine scripts to widgets at this time. You can publish an idea with your script and embed it.
It is not possible to add strategies to widgets at this time. You can publish an idea with your strategy and embed it.
To embed a widget into a WordPress website, you should insert the widget's code into the Custom HTML block.
Widgets may not work on some websites hosted on WordPress.com due to limitations on adding the code. The limitations depend on your WordPress plan, therefore, you can either upgrade the plan or host your website on a third-party server.
Unfortunately, widgets will not be able to display in newsletters. This is because widgets require JavaScript to function, and most email clients do not support JavaScript for security reasons.
Contact us using this form.