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

Proper config is not provided #11779

Closed
2 of 3 tasks
chetanukani opened this issue May 20, 2024 · 2 comments
Closed
2 of 3 tasks

Proper config is not provided #11779

chetanukani opened this issue May 20, 2024 · 2 comments

Comments

@chetanukani
Copy link

chetanukani commented May 20, 2024

Documentation Is:

  • Missing or needed?
  • Confusing
  • Not sure?

Please Explain in Detail...

Hello, If any new user comes into your documentation and tries to create their chart using this module then how do they identify how to create a chart from the server side in node js.
I have reached out many times but have not provided sufficient resources to create a chart in node js. event there should a proper working example there.
If I want to create line chart in node js how can I do this? There is no proper information of Canvas, you have just taken ctx but what ctx?

Your Proposal for Changes

I haven't please do for the same as I have mentioned above

Example

No response

@LeeLenaleee
Copy link
Collaborator

The canvas is not available on node by default since it is a UI element of the browser.

If you want to render charts on your server you need to make the canvas available on the server yourself by either writing your own canvas implementation or using someone else's like node-canvas. After you use that you can use chart.js the same way as in the browser by getting the context of the canvas and passing that to chart.js.

@chetanukani
Copy link
Author

Okay, thanks @LeeLenaleee !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants