Skip to content

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