observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.13k stars 85 forks source link

determine end from data #1410

Closed mbostock closed 1 month ago

mbostock commented 1 month ago

The Plot dashboard assumed that it was being built every day, but since we stopped building it, it was (arguably correctly) showing a gap in the latest data. Since we no longer build it every day, it’s more appropriate to show it as a point-in-time snapshot, and hence the end should be computed from the data rather than based on the current time.

https://observablehq.observablehq.cloud/framework-example-plot/

Before:

Screenshot 2024-05-31 at 10 02 22 AM

After:

Screenshot 2024-05-31 at 10 02 36 AM