How to refresh data in a Plot over a Web API #2013
Answered
by
Fil
ChrisTaylorDeveloper
asked this question in
Q&A
-
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.
Answered by
Fil
Jul 25, 2025
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.
1 reply
Answer selected by
ChrisTaylorDeveloper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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