Skip to content

Adjust Button in toolbar for chart library #429

@walrusix

Description

@walrusix

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions