-
Notifications
You must be signed in to change notification settings - Fork 632
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
Correct way to use DataCube when trading-vue component is not immediately created in DOM? #250
Comments
Here's my workaround for now - for anyone who's hitting similar issues. Here, I'm wrapping the
...and then usage:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: