Open p16i opened 4 years ago
Thanks for the suggestion. One reason why I haven't used any API to update the data is that the visualization doesn't scale well. It works only for the first few hundred cases but not much beyond that. If one case is one pixel thick, with something like fisheye zooming, it may work. On my todo list.
IMHO, it would be good to keep your website updated with the latest data. I think you can use https://covid19.th-stat.com/th/api.
An automatic update can be handled by GitHub Action. I've recently implemented the pipeline, and it seems to work well. Please see https://github.com/heytitle/covid-19/blob/master/.github/workflows/build.yml.
The pipeline is for https://www.datawrapper.de/_/otIzi/.