News for hackers. Stuff that matters.

mbostock

Re:Every Frame Perfect on Saturday June 13, 2026 @12:12PM (#48518628)
There’s a similar principle of congruence in information visualization, stated in Animated Transitions in Statistical Data Graphics by Heer & Robertson as: “Maintain valid data graphics during transitions. To ensure viewers’ mental models are congruent with the semantics of the data, we suggest that, as much as possible, intermediate interpolation states remain valid data graphics.” https://idl.uw.edu/papers/animated-transitions
Re:Shantell Sans on Saturday May 30, 2026 @11:24PM (#48342742)
tldraw uses this font. It’s a great fit for emulating hand-written notes on a whiteboard; feels human.
Re:How to Make a Smith Chart on Friday October 24, 2025 @05:31PM (#45699313)
I made an interactive implementation here: https://observablehq.com/@mbostock/smith-chart
Re:Observable Notebooks 2.0 Technology Preview on Tuesday July 29, 2025 @02:01PM (#44726464)
Thank you. I don’t want to commit to a public timeline on the web editor yet, but rest assured it is a top priority, and we also value the convenience of a web editor, instant collaboration, and community!
Re:Observable Notebooks 2.0 Technology Preview on Tuesday July 29, 2025 @12:33PM (#44725428)
We’re interested in adding a TypeScript cell mode, probably first with type stripping rather than validating types. I was hoping for a pure JavaScript implementation; maybe we’ll try https://github.com/bloomberg/ts-blank-space? I’ve also been looking at https://github.com/val-town/codemirror-ts for the editor, but it’s a lot of machinery.
Re:Observable Framework 1.9 on Tuesday June 18, 2024 @07:44AM (#40716609)
Thanks for the feedback. We implemented the transform to strip TypeScript annotations (using esbuild)…

https://github.com/observablehq/framework/pull/129

but this approach stalled because it doesn’t implement validation of TypeScript: the TypeScript annotations are simply ignored. I felt this defeats the point of using TypeScript. We probably need to use tsc instead of esbuild to get type checking. Hints welcome!

Re:Observable Framework 1.9 on Tuesday June 18, 2024 @07:41AM (#40716580)
Currently the only examples are here: https://observablehq.com/framework/jsx
Re:D3 in Depth on Thursday May 16, 2024 @12:47PM (#40380455)
In what way are these free open-source tools “locked-in” to Observable? Observable Plot is a vanilla JavaScript library that is released under the ISC license and can be used with any style of web development (e.g., React, Svelte, whatever). And likewise Observable Framework is released under the ISC license and you’re able to self-host projects anywhere and develop locally?
Here’s the D3 implementation (which is just an interrupted azimuthal equidistant projection):

https://observablehq.com/@d3/azimuthal-equidistant-hemispher...

Re:Interesting ideas in Observable Framework on Tuesday March 05, 2024 @04:07PM (#39609167)
Thanks for the feedback. We have a PR open to make it easier to register new interpreters (without needing to fallback to .sh or .exe); it’ll let you specify the interpreter associated with a given file extension (e.g., .kts for Kotlin). https://github.com/observablehq/framework/pull/935

As for inputs-driving-data-loaders, that does go against the grain a bit since Framework favors static data snapshots so that the built site is self-contained and performant. But a technique that works well is to generate Parquet files in data loaders representing the superset of data that you want to interact with, and then using DuckDB/SQL in the client to extract the subset you want to visualize. This tends to perform well, though obviously it’s dependent on the size of the superset you want to interact with.

Re:Interesting ideas in Observable Framework on Monday March 04, 2024 @08:45AM (#39590384)
You can write ```mermaid run=false for that.
Re:Interesting ideas in Observable Framework on Monday March 04, 2024 @01:25AM (#39587573)
We do support it. (And use it!) Please see: https://observablehq.com/framework/lib/arrow#apache-parquet
Re:Interesting ideas in Observable Framework on Monday March 04, 2024 @01:24AM (#39587566)
We’re planning to allow changing the default options for blocks (either per-page in front matter or across an entire project using the project config); you could then make `js run=false` the default and `js run` to opt-in to live code as you wish. But we chose to make live code the default since that’s our primary use case.
If you find this interesting, you might enjoy my write up of the Matoušek-Sharir-Welzl (MSW) algorithm used by D3’s circle-packing layout.

https://observablehq.com/@d3/d3-packenclose

I still haven’t quite figured out how to make D3’s implementation robust, though. Volodymyr Agafonkin’s robust-predicated would probably help… https://github.com/mourner/robust-predicates

Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @10:15AM (#39398113)
That “More from Observable creators” is just a standard footer we put across the site for signed-out users to showcase community content across Observable. It’s not part of the notebook. You can ignore everything below the “Appendix”.
Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @10:12AM (#39398073)
See Leland Wilkinson’s The Grammar of Graphics. He describes the difference between a chart typology (a fixed set of chart types with a fixed set of configuration options) and a grammar of graphics (a set of orthogonal primitives that can be composed in arbitrary ways).
Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @10:07AM (#39398011)
If you’re developing the models locally, perhaps Framework’s preview server could work: it watches local files and automatically pushes updates to the browser when files change. This enables reactive updates for data loaders, but also works with static files. So you could visualize the models as they are being generated — meaning as some external process writes local files.

But in general the use case we’re targeting is a shared data app, dashboard, or report. Not something just for you individually, or something ephemeral (that you look at in real-time during training). For example, Framework would work well for sharing a report or dashboard evaluating the performance of the latest models you’ve built with your team.

Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @09:56AM (#39397851)
Right, conceptually it’s static files, but we could develop a hybrid approach where the server does additional data processing on-demand. We already offer access control, but we could also serve different data snapshots to different users, or even filter the data snapshots based on the user. It still has to be fast, though.
Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @09:40AM (#39397637)
There are lots of ways to do heatmaps with Observable Plot. See the raster, contour, and cell marks.

https://observablehq.com/plot/marks/raster https://observablehq.com/plot/marks/contour https://observablehq.com/plot/marks/cell

We generally recommend stacked bar charts over pie and donut charts, so we haven’t prioritized those. But you can already implement them using custom marks, and there’s even a hacky way of doing them using Plot’s map projection system.

https://observablehq.com/@observablehq/pie-to-donut-chart

I don’t understand your comment about the “D3 example.” If you’re looking for Plot examples, you can find them linked from the Plot documentation and the gallery:

https://observablehq.com/@observablehq/plot-gallery

Plot is designed to be extended with JavaScript (rather than a non-JavaScript DSL such as Vega-Lite), such as for custom marks and data transforms. So you might occasionally see other libraries being used together with Plot.

Re:Observable 2.0, a static site generator for data apps on Friday February 16, 2024 @09:29AM (#39397489)
We plan on downloading the imported libraries during build so that they are self-hosted, so it’s effectively another way to install them without having to run `npm install`. We also plan on supporting importing libraries from node_modules. And you can already import local modules so you can install libraries by manually downloading them, too.
Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @10:58PM (#39393022)
Ah, that’s what I thought at first, but I googled for “obsplot” and found the R one and thought I misremembered. Thank you for the correction.
Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @10:37PM (#39392915)
For one, you can deploy them to Observable (with `observable deploy`) and we’ll provide access control.
Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @06:10PM (#39390577)
Yes, we use continuous deployment (cron) to rebuild as needed. You can also get realtime data on the client if you need to (via fetch or WebSocket to your own servers — it’s “just” JavaScript), but generally we find building static data snapshots a useful constraint because it forces you to think about exactly what data is needed, and as a result the dashboard loads instantly.
Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @05:10PM (#39389834)
Thank you. At a minimum, you could iframe pages built with Framework, or have them live alongside your other pages and link to them. Maybe it would be possible to use Framework’s internal API to generate HTML that could be embedded within another static site generator page but we haven’t explored that idea yet.
Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @05:06PM (#39389776)
We’re not expressly targeting the blogging use case — we primarily want to support data apps, dashboards, and reports. But Observable Framework is quite flexible and you can use it for a lot of things; the Framework documentation is itself written using Framework, for example. So I would say that if you are working with data and you want an automated process to keep your data up-to-date, or to work with multiple languages (e.g., Python and JavaScript), or if you want to do a lot of interactive visualizations then you should give Framework a go. But we don’t have much built-in affordances for blogging, so you might find some things missing. Feel free to file feature requests! We’d love to hear your ideas, though we’re primarily focused on reporting and data app development for work.

I’m not sure what better integration with other blogging frameworks would look like — like, part of the page is rendered by Framework, but the site as a whole is handled by the blogging framework? Perhaps we could develop Framework’s API further so it could function like a plugin. But this is speculative and not a priority for us currently. If you explore the possibilities here please let us know!

Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @04:57PM (#39389623)
Did you try running `npm init @observablehq`? It’ll create a starter app for you with everything you need to get started, as described in the Getting started tutorial.

https://observablehq.com/framework/getting-started

If you want more starter apps to look at, you can browse our examples on GitHub:

https://github.com/observablehq/framework/tree/main/examples

Older »