chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
63.9k stars 11.88k forks source link

Python library #11797

Closed anuj9196 closed 1 month ago

anuj9196 commented 1 month ago

Feature Proposal

I'm using this library in my web-based application and this is really awesome. I have a use case to send the chart in the email and also use in the pdf file.

Is there any official Python wrapper that can generate chart images in the backend? I tried many third-party wrappers but they are all absolute and outdated.

Possible Implementation

A python wrapper will really make this awesome library more adaptable to the backend.

LeeLenaleee commented 1 month ago

There is no official python wrapper for chart.js.

We are currently not planning to make this. If you want to generate charts of the backend you need to either write your own wrapper, use an existing one or use node and something like node-canvas to render to.

You can take a look here for possible wrappers (and maby submitting a PR with an update to them yourself to support later versions of chart.js): https://github.com/chartjs/awesome