Philippe Rivière
Philippe Rivière
I think you're right! Also, I have tried `pipenv`, and it's great. Maybe this is an opportunity to write down how it works in this case. For me it was:...
Yes it looks much simpler. One issue that I had solved with my system but has a regression now, is when the page sets a color mode that is not...
Inspecting the script, I see it only reads `window.matchMedia("(prefers-color-scheme: dark)").matches`. Probably something to report upstream.
I think we only need to add the built `chart.txt` (so that in the future we can rebuild the project without datawrapper credentials). What do you think of calling this...
Yes, exactly!
Reading https://blog.datawrapper.de/web-component-embedding/ I found out how to solve the dark mode issue, by adding data-dark="true" or "false". I'll fix in a moment (also doing some light copy-editing).
hmmm, I was trying to embed another chart and I'm getting errors on nki3d and K2J9t (from https://blog.datawrapper.de/pigeon-internet-speed/), looks like in these instances the script tries to get the data...
I don't know what I was doing wrong, but K2J9t and nki3d now work as expected. I've added a different chart at the top for some diversity, polished the prose...
Redeployed at https://observablehq.observablehq.cloud/framework-example-datawrapper-api/
It's a reactive variable available in all pages. See https://observablehq.com/framework/lib/generators#dark (I linked to this page in the "tip")