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 use with Vue.js #4

Open
mnadalin opened this issue Dec 4, 2023 · 0 comments
Open

Can't use with Vue.js #4

mnadalin opened this issue Dec 4, 2023 · 0 comments

Comments

@mnadalin
Copy link

mnadalin commented Dec 4, 2023

I'm trying to use oi.linechart.js in a Vue 3 project, importing the library as:

import "../oi.linechart.js-main/oi.linechart";

And pasting the first example in the onMounted() hook.
I get an error at line 215:

214	a.x = Math.round(a.x);
215	b.x = Math.round(b.x);
216	b = clone(a);

After commenting it the chart is created correctly.

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

1 participant