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

Expose CanvasGradient and CanvasPattern #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kfitzgerald
Copy link

Greetings,

I got some fatal errors when generating a line chart. Seems as though chart.js expected CanvasGradient to exist globally, but it wasn't. It also appears that chart.js hasn't bothered exporting this until the (currently unreleased) 2.x branch.

This PR adds CanvasCradient and CanvasPattern to global as well. Haven't seen any crashes since.

Thanks,
-Kevin

@jacktuck
Copy link

jacktuck commented Feb 4, 2018

@kfitzgerald You could try https://github.com/jacktuck/node-chartjs as it doesn't depend on globals i've only tested 2.4.0 though

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

Successfully merging this pull request may close these issues.

2 participants