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

Can't get bindto to bind #16

Open
DigitalWheelie opened this issue Oct 15, 2018 · 3 comments
Open

Can't get bindto to bind #16

DigitalWheelie opened this issue Oct 15, 2018 · 3 comments

Comments

@DigitalWheelie
Copy link

Bringing in a number of charts into a SPA, but can't get them to bind to the container.

In an external js data file I specify the binding like this, for chart42Data:
bindto: document.getElementById('chart42Graph')

I import the data, and initialize the data:
this.handler.$emit('init', this.chart42Data)

Hoping it ends up in this container, but it doesn't:
<vue-c3 :handler="handler" id="chart42Graph"></vue-c3>

Instead, the last item I initialize attaches to all vue-c3 containers.

What am I missing?

@DigitalWheelie
Copy link
Author

Also, when trying to build my application, I get this error:
ERROR in build.js from UglifyJs Unexpected token: punc (() [./node_modules/vue-c3/dist/vue-c3.umd.js:26,0][build.js:29893,11]

Any suggestions?

@biering
Copy link
Owner

biering commented Nov 19, 2018

I'll look into it.

@DigitalWheelie
Copy link
Author

DigitalWheelie commented Nov 19, 2018

So sorry, I forgot to update this, but the UglifyJS error was unrelated.
Also, for various reasons I switched to Billboards so I'm good now.

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

2 participants