rafaelklaessen/react-tradingview-widget

paneProperties.background not working

khanhnoi opened this issue · 0 comments

I want to change background of chart. But overrides not working ?

Solution i find

new TradingView.widget({
    overrides: {
        'paneProperties.background': '#2C2F33',
    }
});

NextJs :

  <TradingViewWidget
                      autosize={true}
                      symbol={symbol}
                      interval={"D"}
                      timezone={"Etc/UTC"}
                      style={1}
                      locale={"en"}
                      toolbar_bg={"#2C2F33" || "transparent" || "#f1f3f6"}
                      enable_publishing={false}
                      hide_top_toolbar={true}
                      hide_legend={true}
                      save_image={false}
                      container_id={"tradingview_11786"}
                      theme={"dark" || "light"}
                      overrides={{
                        "paneProperties.background": "#2C2F33",
                        "paneProperties.backgroundType": "solid",
                        // background: "#2C2F33",
                        // backgroundColor: "#2C2F33",
                        // theme: "#2C2F33",
                        // volumePaneSize: "medium",
                      }}
                />
    Please help me.