-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
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! |
Hello Sean,
Thank you for the quick reply.
I am using this in my html file:
<!-- Chart.js-->
<script src="assets/js/chart.min.js"></script>
<!-- Chart Downsample-->
<script src="assets/js/chartjs-plugin-downsample.js"></script>
Error message:
Uncaught ReferenceError: require is not defined at chartjs-plugin-downsample.js:1
kind regards
Thomas Herold
Founder & CEO Book Ad Report
https://www.bookadreport.com <https://www.bookadreport.com/>
… Am 19.12.2018 um 16:45 schrieb Sean ***@***.***>:
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!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#4 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACvX5Lh_zR0PXUzYVVRhTJmy507seZWSks5u6l8mgaJpZM4Zafuh>.
|
Any ideas how I can get this to work? |
This error makes me think a nodejs-targeting script is being used in a non-nodejs environment:
Is the copy of |
Hello Sean,
ok, I am using this file now.
Now I am getting:
Uncaught TypeError: Cannot read property 'x' of undefinedchartjs-plugin-downsample.js:76
The chart.bundle.js you are using in your sample contains the moment.js file, which I also have loaded before the chart.js.
kind regards
Thomas Herold
… Am 19.12.2018 um 20:12 schrieb Sean ***@***.***>:
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 <https://raw.githubusercontent.com/AlbinoDrought/chartjs-plugin-downsample/master/src/chartjs-plugin-downsample.js>? If so, that one won't work in a browser, but the built version on the releases page should work <https://github.com/AlbinoDrought/chartjs-plugin-downsample/releases>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#4 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACvX5O4QmxohGUwVxuJVrlWon2pfqt1Iks5u6o-KgaJpZM4Zafuh>.
|
I think it is the same issue as here: Would be lovely if you could fix the plugin to use with number datasets. |
How can I use this plugin with chart.js without the bundle? I am getting error messages in line 1 because of this.
The text was updated successfully, but these errors were encountered: