Skip to content

v5.7.0

Compare
Choose a tag to compare
@jheer jheer released this 30 Sep 11:47
7eaec18

Notable Additions:

  • The text mark now supports multi-line text. Multiples lines are specified by setting the text channel to an array of strings (one per line).
  • The title directive now supports subtitle text and corresponding configuration properties.
  • Title text in axes, legends, and titles can now span multiple lines (as an array of strings).
  • New transforms for dot plot layout and quantile estimation.
  • New expression functions for statistical distributions.
  • Legend symbolLimit property controls the number of entries shown in a symbol legend. The default configuration imposes a 30 entry limit.
  • Configuration support for default cartographic projection properties.

Deprecations:

  • The title directive's top-level name, interactive, and style properties, along with the flat encode block for title text, are now deprecated and will be removed in Vega 6.0. Instead, please use nested encode blocks using the keys title or subtitle. This new form is more expressive and consistent with custom encode blocks for axes and legends.

Changes from v5.6.0:

vega

  • Add dot-plot test specification.
  • Add quantile-dot-plot test specification.
  • Add quantile-quantile-plot test specification.
  • Add text-multiline test specification.
  • Update chart, font-size-step, titles test specifications.
  • Update contour-map test specification title use.
  • Update test scenegraphs to use updated serialization method.

vega-encode

  • Add legend symbolLimit property. (#2034)
  • Fix tick format precision with binned values.

vega-functions

  • Add luminance and contrast expression functions for accessibility. (Thanks @benib!)
  • Add new distribution methods from vega-statistics.

vega-geo

  • Update geojson transform to use identity accessor by default. (#2016)

vega-parser

  • Add subtitle support for title directives.
  • Add multi-line config options for axis and legend titles.
  • Add projection config support. (#1985)
  • Add legend symbolLimit property. (#2034)
  • Fix encode-util array-typed parameter bug.

vega-scenegraph

  • Add multi-line text rendering support for text marks.
  • Add string-array-valued text property support.
  • Add lineBreak and lineHeight properties for multi-line text.
  • Add multilineOffset utility method.
  • Add multi-line text test case.
  • Update text metrics utilities to isolate specific lines of text.
  • Fix image mark width/height determination. (#2033)
  • Fix allowed text properties for scenegraph serialization.

vega-schema

  • Add multi-line text, lineBreak, and lineHeight channel schema entries.
  • Add multi-line text schema entries for axis / legend titles.
  • Add subtitle schema entries.

vega-statistics

  • Add dotbin method.
  • Add quantiles method.
  • Add randomLogNormal distribution.
  • Add sample*, cumulative*, density*, and quantile* methods for normal, log normal, and uniform distributions.
  • Update inverse error function implementation.

vega-transforms

  • Add DotBin transform.
  • Add Quantile transform.
  • Fix Load transform output processing, wrap values in an array. (#2014)

vega-typings

  • Add multi-line text, lineBreak, and lineHeight channel typings.
  • Add multi-line text typings for axis / legend titles.
  • Add subtitle typings.
  • Add typings for new transforms.

vega-view-transforms

  • Add subtitle layout support.
  • Add multi-line text layout support for axis / legend titles.
  • Fix dirty call for axis title element.
  • Fix view layout trigger for all guide elements.