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
Hi there - hopefully a straightforward q. I'm using the trading-vue with the Vuetify UI library, and specifically I'm trying to embed an instance of the <trading-view> component nested inside of a <v-tab-item>, like so:
where "chart" is a new DataCube({chart: {}, onchart: [], offchart: []})
When setting candle data - this.chart.set('chart.data', candles) - unless I've navigated to the tab, I'll get an "undefined" error message within the library:
TypeError: Cannot read properties of undefined (reading '$set')
If I try use :eager="true" on the v-tab-item component, I don't get the undefined error, but the chart itself does not get updated, even when setting the DataCube with valid data, so I end up with a blank chart.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Here's my workaround for now - for anyone who's hitting similar issues. Here, I'm wrapping the <trading-vue> component with my own, and simply passing in the ohlcv data as props. The key to making it all work is the watch on the data:
Hi there - hopefully a straightforward q. I'm using the trading-vue with the Vuetify UI library, and specifically I'm trying to embed an instance of the
<trading-view>
component nested inside of a<v-tab-item>
, like so:where "chart" is a
new DataCube({chart: {}, onchart: [], offchart: []})
When setting candle data -
this.chart.set('chart.data', candles)
- unless I've navigated to the tab, I'll get an "undefined" error message within the library:If I try use
:eager="true"
on thev-tab-item
component, I don't get the undefined error, but the chart itself does not get updated, even when setting the DataCube with valid data, so I end up with a blank chart.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: