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

Use with chart.js #4

Open
tomherold opened this issue Dec 19, 2018 · 6 comments
Open

Use with chart.js #4

tomherold opened this issue Dec 19, 2018 · 6 comments

Comments

@tomherold
Copy link

How can I use this plugin with chart.js without the bundle? I am getting error messages in line 1 because of this.

@AlbinoDrought
Copy link
Owner

Without which bundle? The chart.js or chartjs-plugin-downsample bundle? Which error messages are you getting, and which unbundled thing are you using (unpacked git repo, npm package, etc).

Any chance you can pop out a demo too?

Thanks!

@tomherold
Copy link
Author

tomherold commented Dec 19, 2018 via email

@tomherold
Copy link
Author

Any ideas how I can get this to work?

@AlbinoDrought
Copy link
Owner

AlbinoDrought commented Dec 19, 2018

This error makes me think a nodejs-targeting script is being used in a non-nodejs environment:

Uncaught ReferenceError: require is not defined at chartjs-plugin-downsample.js:1

Is the copy of assets/js/chartjs-plugin-downsample.js being used the raw one from this repository? If so, that one won't work in a browser, but the built version on the releases page should work.

@tomherold
Copy link
Author

tomherold commented Dec 19, 2018 via email

@tomherold
Copy link
Author

I think it is the same issue as here:
#3

Would be lovely if you could fix the plugin to use with number datasets.

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