Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 May 22:21
· 28 commits to main since this release
c069b27

Fixed

  • README: the three sparkline sample images (sparkline-line.png, sparkline-bar.png, sparkline-mixed-bar.png) now use absolute raw.githubusercontent.com URLs instead of the relative docs/images/... paths so they render both on GitHub and on the Hex package page (the relative paths cannot be resolved against the published package archive, which omits the docs/images/ directory). (#7)
  • line.with_area_fill(True) now anchors the area to the zero baseline: all-positive series fill to the viewBox bottom (legacy behaviour, unchanged), all-negative series fill upward to the viewBox top, and mixed-sign series fill toward the SVG y-coordinate that data value 0.0 maps to — so positive segments tint downward toward zero and negative segments tint upward toward zero. Previously the area always closed at the canvas floor, which made mixed-sign series read visually as all-positive. (#6)

Install

gleam add sparklinekit

See HexDocs for the API
reference.