ChartjsNodeCanvas icon indicating copy to clipboard operation
ChartjsNodeCanvas copied to clipboard

wip: replace canvas with @napi-rs/canvas

Open elliots opened this issue 1 year ago • 7 comments

just in case anyone else is interested.

no system dependencies, and prebuilt for arm (m1)

barely tested... but the example renders

image

elliots avatar Aug 20 '24 05:08 elliots

Just tried it in Bun and it works gr8, looks good to me on my chart here: chart

capaj avatar Dec 08 '24 17:12 capaj

Interested

StoneCypher avatar Jan 07 '25 21:01 StoneCypher

@elliots I'm definitely interested in this! Have you continued to use it? Curious how it is working for you.

Bhager01 avatar Feb 26 '25 03:02 Bhager01

@elliots Thank you for your contribution! I have picked up working on this project again and am going to release a version soon working on [email protected].

The idea of a much more isolated canvas implementation is very appealing, there have been many bugs and issues with platform specific 'considerations', including node-gyp. That said that project is still pre-release, and also does not support some features we need (like animations, recently). I will keep my eye on it closely, maybe have a look at a way to make the canvas implementation an option!

SeanSobey avatar Feb 27 '25 14:02 SeanSobey

That's great to hear @SeanSobey ! I've been using this package for years now and I'm glad to see you'll be updating it to work with Canvas 3.1.0. Will you also be updating it to work with the newest chart.js (v4) or is that too big of an undertaking? Thanks again for your work on this!

Bhager01 avatar Feb 27 '25 20:02 Bhager01

@Bhager01 Thanks! Indeed that's the plan, I already have a WIP version running on chart.js 4.x, there are quite a lot of integration changes required but its looking good for a release soon.

SeanSobey avatar Feb 27 '25 22:02 SeanSobey

@Bhager01 Thanks! Indeed that's the plan, I already have a WIP version running on chart.js 4.x, there are quite a lot of integration changes required but its looking good for a release soon.

@SeanSobey I just saw you pushed out a new version! Thank you so much! I look forward to trying it out!

Bhager01 avatar Mar 26 '25 17:03 Bhager01