charting-library-examples icon indicating copy to clipboard operation
charting-library-examples copied to clipboard

Adjust Button in toolbar for chart library

Open walrusix opened this issue 4 months ago • 1 comments

Hello, I am using the TradingView chart, but the problem I have is that I cannot add the adjust dropdown to the toolbar.

My current code is:

<!DOCTYPE HTML>
<html lang="fa">
<head>
    <meta charset="utf-8" />
    <title>TradingView Standalone - Toolbar Adjustment Dropdown</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <script type="text/javascript" src="charting_library/charting_library.standalone.js"></script>
    <script type="text/javascript" src="datafeeds/udf/dist/bundle.js"></script>

    
</head>

<body style="margin:0;">
    <div id="tv_chart_container" style="width:100%; height:100vh; position:relative;"></div>

    <script type="text/javascript">
        function initOnReady() {
          const widget = window.tvWidget = new TradingView.widget({
            symbol: 'AAPL',
            interval: '1D',
            container: "tv_chart_container",
            datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
            library_path: "charting_library/",
            autosize: true,
            locale: "fa",
            theme: "light",
            enabled_features: ["study_templates","adjustment"],
            disabled_features: ["use_localstorage_for_settings"],
          });

        
        }

        window.addEventListener('DOMContentLoaded', initOnReady, false);
    </script>
</body>
</html>

walrusix avatar Nov 01 '25 07:11 walrusix

I would suggest having a look at this page on our documentation website along with the attached example.

SimonMorda avatar Nov 03 '25 14:11 SimonMorda