Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paneProperties.background not working #1

Open
khanhnoi opened this issue May 4, 2022 · 0 comments
Open

paneProperties.background not working #1

khanhnoi opened this issue May 4, 2022 · 0 comments

Comments

@khanhnoi
Copy link

khanhnoi commented May 4, 2022

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant