Skip to content

zuzu v0.8.3

Choose a tag to compare

@kenshaw kenshaw released this 22 Nov 22:10
· 25 commits to main since this release

zuzu v0.8.3 fixes two places where the compiler of Vega-Lite wrote a spec that drew other than vega-lite.js, as in vegalite/bar_grouped_thin.vl.json and vegalite/bar_grouped_thin_minBandSize.vl.json. The output of some charts of Vega-Lite changes, as the sections below say.

A color with conditions alone

  • A color with conditions alone, such as "color": {"condition": {"test": ..., "value": "#aaa"}}, falls back to the color of the mark when no condition holds, as vega-lite.js writes it. Before, such a mark had no fill, so the bars of bar_grouped_thin.vl.json did not draw.
  • The fallback is the color of the mark, then the color of the config of the mark, then the color of a mark of the theme. The color of the theme comes through a scale of one value, zuzu_mark_color, which the render fills from its theme in each mode and scheme, because the compile does not know the theme.

Invalid values that a view keeps

  • A view that keeps invalid values, with "invalid": null on the mark or in the config of the marks, puts an invalid position at zero of its scale, as vega-lite.js writes it. When the domain can leave out zero, the position goes to the bottom for y and to the left for x. Before, a bar of a mean of no values drew at the full height.
  • A line, an area and a trail break at an invalid value instead, as before.

Dependencies

  • github.com/xo/okage v0.20.1

Full changes: v0.8.2...v0.8.3