You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am integrating the TradingView Advanced Charting Library into my Next.js application and have encountered the following issues:
Chart Data Updates:
When my component receives new OHLCV data, the chart does not update dynamically. I am passing the new data to the chart at regular intervals (every 10 seconds), but the chart does not reflect these changes unless it is reloaded, which affects user experience.
Timeframe Selection Issue:
When switching the chart's timeframe to daily or weekly, the chart does not display the data correctly. The data either appears misaligned or does not load at all.
Steps Taken:
Dynamic Data Updates:
I am using a custom dataFeed implementation for the TradingView chart, where new OHLCV data is passed at regular intervals (10 seconds).
The getBars method retrieves historical data, filtering it based on the requested period and returning it in the required format.
The subscribeBars method handles real-time updates by sending the latest bar to the chart via onRealtimeCallback.
The data feed is updated dynamically using the resetData method and assigning the updated data feed to the chart when the ohlcvData changes.
Timeframe Management:
Supported resolutions are defined in the onReady method and symbol resolution settings, covering intraday, daily, and weekly intervals (e.g., 10, 15, 30, 60, 1D, 1W).
The chart’s data feed and bars are structured to support these resolutions, including daily and weekly intervals.
Timezone and session settings are configured to handle 24x7 data, with UTC timezone for consistency.
Reinitialization and Cleanup:
The widget is initialized with the TradingViewWidget constructor, using the provided chartOptions and theme.
To prevent memory leaks, the widget is removed during component unmounting or navigation changes.
Theme Switching:
When the theme is changed, the changeTheme method updates the chart dynamically.
Despite these implementations, the chart does not update with new data dynamically, and the daily/weekly timeframes do not display the data correctly.
Could you please review this implementation and suggest any changes or corrections?
The text was updated successfully, but these errors were encountered:
I am integrating the TradingView Advanced Charting Library into my Next.js application and have encountered the following issues:
Chart Data Updates:
When my component receives new OHLCV data, the chart does not update dynamically. I am passing the new data to the chart at regular intervals (every 10 seconds), but the chart does not reflect these changes unless it is reloaded, which affects user experience.
Timeframe Selection Issue:
When switching the chart's timeframe to daily or weekly, the chart does not display the data correctly. The data either appears misaligned or does not load at all.
Steps Taken:
Dynamic Data Updates:
I am using a custom dataFeed implementation for the TradingView chart, where new OHLCV data is passed at regular intervals (10 seconds).
The getBars method retrieves historical data, filtering it based on the requested period and returning it in the required format.
The subscribeBars method handles real-time updates by sending the latest bar to the chart via onRealtimeCallback.
The data feed is updated dynamically using the resetData method and assigning the updated data feed to the chart when the ohlcvData changes.
Timeframe Management:
Supported resolutions are defined in the onReady method and symbol resolution settings, covering intraday, daily, and weekly intervals (e.g., 10, 15, 30, 60, 1D, 1W).
The chart’s data feed and bars are structured to support these resolutions, including daily and weekly intervals.
Timezone and session settings are configured to handle 24x7 data, with UTC timezone for consistency.
Reinitialization and Cleanup:
The widget is initialized with the TradingViewWidget constructor, using the provided chartOptions and theme.
To prevent memory leaks, the widget is removed during component unmounting or navigation changes.
Theme Switching:
When the theme is changed, the changeTheme method updates the chart dynamically.
Despite these implementations, the chart does not update with new data dynamically, and the daily/weekly timeframes do not display the data correctly.
Could you please review this implementation and suggest any changes or corrections?
The text was updated successfully, but these errors were encountered: