tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.39k stars 763 forks source link

How to set the dark theme for a chart? #17

Closed andrewtabit closed 6 years ago

andrewtabit commented 6 years ago

You have 2 themes for charts on TradingView.com (light and dark) and the widget supports them as well but how can I set the dark theme if I am using the charting library with my datafeed instead of the widget? It doesn't seem to have any impact on the theme:

{
  "theme": "Dark"
}
timocov commented 6 years ago

Please follow https://github.com/tradingview/charting_library/issues/1277

fernandopascoalbr commented 4 years ago

@timocov tradingview/charting_library#1277 is 404 for me. I need to add dark theme on LightweightCharts.createChart. Can you help me?

timocov commented 4 years ago

@fernando-pascoal do you have access to charting_library repo? Did you request an access to it via https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/? Did you get approve for that?