Skip to main content
← Tech Stackups News
On Hacker News

Gribouille 0.3.0: A Grammar of Graphics for Typst

Read the full article on mickael.canouil.fr
82
points
21
comments
2
notable voices

The 5-second version

  • Gribouille 0.3.0 introduces `guides(x: none)` and `guides(y: none)` to hide axis ticks and labels without modifying the theme, plus `guides(default: none)` to hide all legends.
  • `plot(..., defer: true)` is removed and replaced by `defer(plot, ...)` as a standalone helper function for creating reusable panel functions.
  • `compose()` gains a `theme:` parameter that styles composition chrome and propagates to panels without their own theme, while panels inside `compose()` no longer accept individual `width`/`height`.
  • `geom-area()` now defaults to `stat: "align"` and `position: "stack"`, automatically resampling mismatched x values across groups for seamless stacking.
  • `annotate()` gains `clip: false` to allow marks to overflow the panel boundary, and `guides(none)`/`guides(auto)` replace the removed `guide-none()` function.

Top voices

Verbatim comments from the thread's most notable / highest-karma participants.

adamnemeceknotable58.3k karma4 comments
> It's cool sure, powerful also... but when anybody has access to both vector-based editor and raster-based editor ... but also tools that incorporate them, e.g. rich text editors ... but also entire toolchain going from compilers to libraries all the way to Web based notebook with their editors and running environment that can then output printable artifacts, I don't think there has to be "the" way. They might be a more popular way within a certain zeitgeist but... does one project has to "repl…
Read on HN ↗
josephgnotable21.1k karma
Right; but markdown has expanded beyond that niche. Lots of projects use markdown for other stuff - like mdbook, or for blogs. I think markdown is a great format for readme files. But for real documentation, the added features of typst are fantastic. Like, being able to write scripts, have figures and custom styling, populate data from JSON files, plugins, typography, numbered sections, footnotes and all sorts of other stuff. Markdown doesn't even support comments properly! I want typst for bl…
Read on HN ↗
tlarkworthy5.8k karma
Of course it's extensible, you can put HTML in it, and HTML is extensible.
Read on HN ↗
bestouff2.9k karma
He's open to API suggestions, you should open an issue
Read on HN ↗