How to refresh data in a Plot over a Web API #2013
-
I would like to refresh my Framework project webpage and have one of my Observable Plots refresh it's data immediately, by fetching from a Web REST API e.g. Google Analytics. Is this possible or can my Plot only use data that was available during the build? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
here's an example that fetches live data and plots it: (note that there is a fallback in case the live data source fails.) source code: |
Beta Was this translation helpful? Give feedback.
here's an example that fetches live data and plots it:
https://observablehq.observablehq.cloud/pangea/varia/covid-sumeau
(note that there is a fallback in case the live data source fails.)
source code:
https://github.com/Fil/pangea/blob/main/src/varia/covid-sumeau.md?plain=1