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 we use chartjs-node-canvas instead of chartjs-node? #137

Merged
merged 3 commits into from
Jul 12, 2021

Conversation

sisidovski
Copy link
Contributor

Hi!

I tried to update README.md file, but I couldn't install chartjs-node library on the current master branch because of node-gyp error. Maybe similar to vmpowerio/chartjs-node#85, I couldn't fix this installation issue on my local machine (Mac OS 11.3.1, node.js v16.4.2).

I don't know how reasonable it is, but It looks like chartjs-node is not actively maintained anymore. So can we use chartjs-node-canvas instead?

@sisidovski sisidovski changed the title Can we use chartjs-node-canvas instead of chartjs-node Can we use chartjs-node-canvas instead of chartjs-node? Jul 12, 2021
Copy link
Owner

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @sisidovski!

just the one note about color contrast but otherwise this is great :)

"chart.js": "^2.8.0",
"chartjs-node": "^1.7.1",
"chart.js": "^2.9.4",
"chartjs-node-canvas": "^3.2.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new legend text is extremely hard to read, could we fix the font color there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that is correct, let me check.

@sisidovski sisidovski force-pushed the use-chartjs-node-canvas branch from e10a0b7 to 6ea5405 Compare July 12, 2021 15:11
@sisidovski sisidovski force-pushed the use-chartjs-node-canvas branch from 6ea5405 to 1d38fb3 Compare July 12, 2021 15:14
@sisidovski
Copy link
Contributor Author

The legend is still slightly different, but now it has the better color contrast. WDYT? @patrickhulce

Copy link
Owner

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

different it fine this is even more legible :)

thanks very much!

@patrickhulce patrickhulce merged commit 5695a15 into patrickhulce:master Jul 12, 2021
@sisidovski sisidovski deleted the use-chartjs-node-canvas branch July 12, 2021 19:13
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