timqian / chart.xkcd

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

IDEAS - possible tools to make chart.xkcd better #13

Open timqian opened 4 years ago

timqian commented 4 years ago

Feel free to bring up suggestions for tools to makes chart.xkcd better

Here are some initial ideas

timqian commented 4 years ago
denisinvader commented 4 years ago

a website to convert csv data to chart and support download svg

Those could be solved by Observalbe.

[edit]: I'v already made a minimal prototype for bar chart

cmd tool to convert csv to chart (open up the website above with data sent to the site?)

I think, it would be better to use Node with JSDOM or Puppeteer to generate .svg and .png files locally

timqian commented 4 years ago

Dynamic charts?

Kapture 2019-09-16 at 16 10 52

denisinvader commented 4 years ago

@timqian I think dynamic charts should be implemented by the update method in every chart and user could write something like this:

const theChart = new chartXkcd.Bar(svg, {
  // chart options and datasets
});

onDataUpdate((newDatasets) => theChart.update({ datasets: newDatasets }));
denisinvader commented 4 years ago

What about stacked and clustered bar charts?