Skip to content

SlintPlot 0.5.0

Choose a tag to compare

@trondegil trondegil released this 04 Nov 16:37
· 9 commits to main since this release

Added

  • legend-attached on pie, doughnut, polar area, radar, radial bar,
    sunburst, segmented ring and tile grid charts, on by default: the legend
    stays next to the chart instead of at the edge of its area, which was far
    away when the area was much taller or wider than the round or square
    chart in it. false keeps it at the edge, as before.

Changed

  • The focus ring round a chart shows only when the keyboard brought the
    focus (Tab) or has been used since, not after a click, as :focus-visible
    on the web. Clicking still gives the chart the arrow keys.

Example apps

  • Gallery: the line chart with and without points, the pie chart with
    and without data labels, and the radar chart with lines and filled are one
    sidebar entry each, with a tab per variant; the filled radar chart moves
    from Area charts to the radar chart.
  • Stress test: --bench-gpu [dir] times the same charts as --bench
    with a GPU renderer, Skia on macOS, drawing each frame with
    Window::take_snapshot so that the GPU's work is included; with a folder,
    it saves every frame as a PNG.
  • Both apps: a skia feature builds them with Slint's Skia renderer, to
    run with SLINT_BACKEND=winit-skia.

Tested

  • Skia: every gallery sample draws correctly with Slint's Skia renderer on
    macOS, Linux and Windows, as with FemtoVG and the software renderer.

Documentation

  • A compatibility box next to Getting started: Rust only, the Slint and
    Rust versions, the platforms and renderers tested, and no live preview.
  • Performance: how many points or items each chart can show at 60 fps,
    30 fps and within a second, with the software renderer and with Skia, and
    why the numbers look as they do. The full results moved to a new
    benchmarks page, measured again with SlintPlot 0.5.0 and Slint 1.18.1, with
    Skia's numbers and how to repeat them.
  • How to choose a renderer for the example apps.
  • "Request a commercial license" until checkout opens.

Website

  • A library release (v*) no longer cancels the deploy of the apps
    release that follows it.