timqian / chart.xkcd

xkcd styled chart lib
https://timqian.com/chart.xkcd/
MIT License
7.61k stars 200 forks source link

consider interfacing with vega.js #1

Open g3o2 opened 4 years ago

g3o2 commented 4 years ago

Interesting project! The syntax of your library strongly reminds me of vega-lite, which itself is based on vega and the latter being itself based on d3.

I can see at least three advantages for your library, in particular the rendering part, if you built a renderer for vega:

timqian commented 4 years ago

Thanks for the suggestion, I will look into it to see if it easy to do so when I have time

g3o2 commented 4 years ago

To save you even more time, please check this link ;)

g3o2 commented 4 years ago

BTW I am not even sure that you need to write your own renderer, there is already a svg, canvas and webgl renderer. Maybe some CSS or other middle solution is already sufficient...

Edit: According to feedback from one of the vega core developers, implementing xkcd kind of style while preserving the benefits from the vega ecosystem would probably require to:

jgehrcke commented 3 years ago

Long-term matplotlib user here. Used mpl's xkcd style quite a bit, too. I'm digging into https://github.com/altair-viz/altair right now which is based on Vega. Would love to be able to use an xkcd style in that eco system, too!

Thanks for expressing all these thoughts @g3o2.