Skip to content

chartlet 0.21.0

Latest

Choose a tag to compare

@casoon casoon released this 24 Oct 17:56
· 113 commits to main since this release

Breaking

  • Topic map and knowledge landscape: the experimental types topicmap and atlas are gone,
    with their blocks, the area picker of the HTML figure, their example files, the stylesheet part
    and their warnings. A specification with either type is refused with invalid_spec.

Added

  • Themes: tokens in a specification set single colors of the palette by the name of the
    --chartlet-* custom property without its prefix; they reach the print and social variants and
    PNG. Details: Customize the look.
  • Themes: a theme file of your own colors is applied to any number of specifications with
    --theme <name|file>, the theme option of @casoon/chartlet and <Chart>, the theme input
    of chartlet_render and chartlet::apply_theme. light, dark and blueprint ship as such
    files in themes/.
  • Themes: a color set in tokens that lies on another with less contrast than WCAG 2.2 asks for is
    reported as low_contrast at the token. Details: Contrast.
  • CLI: chartlet stylesheet starts its output with /* generated by chartlet - do not edit */.
    Details: Formatters and linters.
  • Schema: chartlet-theme.schema.json for theme files, and tokens in the specification schema.
  • Site: the Customize page shows five ways to restyle a chart, each rendered.
  • Site: the showcase gains the sequence diagram sign-in-sequence, the architecture diagram
    tenant-architecture and a QR code, the first example of chartlet::qr.

Changed

  • Rust: the crate declares rust-version = "1.88", which README and the installation page already
    stated; it builds with that version, with and without png.
  • Site: the showcase is grouped by topic with a jump list and shows one example per variant.

Full changelog: https://casoon.github.io/chartlet/changelog/