Skip to content

chartlet 0.1.0-alpha.2

Pre-release
Pre-release

Choose a tag to compare

@casoon casoon released this 11 Sep 04:27
· 463 commits to main since this release

Second alpha of chartlet with two fixes to the command line interface.

Changes

  • Consistent error locations. Every error now reports its location as a JSON Pointer.
    Previously, errors raised while reading the specification used a different notation.

    Case Before Now
    Unknown field $valueAxis.colour /valueAxis/colour
    Wrong value type $data[0].value /data/0/value
    Missing required field $. /
    Malformed JSON line 2, column 0 / (line and column stay in the message)

    If you parse path from errors, update that code.

  • Early-closing readers no longer crash the CLI. When output is piped into a program that
    stops reading early, such as chartlet render spec.json | head, chartlet now ends quietly.
    Before, it crashed with exit code 101.

  • Corrected installation instructions for the Astro package. Neither the CLI nor the npm
    package is published to a registry yet.

Chart output is unchanged: every example renders byte-identically to 0.1.0-alpha.1.

Getting started

Build the CLI from source (Rust 1.88 or newer):

cargo install --git https://github.com/casoon/chartlet --tag v0.1.0-alpha.2
chartlet render spec.json --format html -o chart.html

See the README and the examples/ directory.

Known limitations

  • The specification may change before the first stable release.
  • Screen reader testing with VoiceOver and NVDA is still pending.
  • Line charts support a single series only.
  • The Astro component calls the installed CLI; a self-contained package comes later.