Gribouille 0.3.0: Enhanced Guide Control for Typst Graphics

Original: Gribouille 0.3.0: A Grammar of Graphics for Typst

Why This Matters

Enhances usability of Typst visualization library with granular control over plot elements and theming capabilities for technical documents.

Gribouille 0.3.0 released with improved guide controls allowing fine-grained on/off switches for axes and legends, compose() function now supports themes, geom-area() defaults to stacking, and multiple annotation improvements for the Typst grammar-of-graphics library.

Gribouille 0.3.0 introduces refined control over guide elements in data visualization for Typst. The primary feature is a new guide control system: guides(x: none) hides axis tick marks and labels while preserving the axis line, grid, and title. Similarly, guides(y: none) controls the y-axis, and guides(default: none) hides all legends without individual overrides. The syntax guides(none) and guides(auto) replace the removed guide-none() function. For radial coordinates, guides(theta: none) hides the angular axis completely, while guides(r: none) hides radial tick labels. The compose() function gains a theme: parameter to style composition chrome that propagates to panels without their own theme. A breaking change replaces plot(..., defer: true) with defer(plot, ...). The geom-area() geometry now defaults to stat: "align" and position: "stack", automatically resampling groups with mismatched x values. The annotate() function gains a clip: parameter (default true) allowing marks to overflow panels when set to false. These changes provide developers and data visualization practitioners with finer granularity over visual elements without requiring direct theme manipulation.

Source

mickael.canouil.fr — Read original →