这是indexloc提供的服务,不要输入任何密码
Skip to content

v2.5.0

Choose a tag to compare

@arvind arvind released this 23 Feb 00:21
· 5291 commits to main since this release
  • Top-level predicate definitions have been deprecated. Test expressions can now be specified inline as part of a production rule.

  • Additional scale, iscale, inrange, and indata functions have been added to the expression language to cover functionality provided by deprecated predicates. Note: these functions may only be used in signal stream definitions or production rule test expressions.

  • Vega now styles the mouse pointer based on a new cursor mark property or specially-named cursor signal.

  • A new rank transform computes an ascending rank score for data tuples based on key fields or their observed order.

  • field is now an optional parameter for the Streaming Data operators if the signal value is an object. If field is specified for object signal values, it is used as a key field for toggle and removals (i.e., the datum whose field matches that of the signal value is toggled or removed). If no field is specified, all properties found in the signal value object are used as key fields.

    To update existing specifications to correspond to this behaviour:

    1. If a field is used in a "modify" transform, and the corresponding signal returns an object in its expr definition, ensure that the field matches the key property/properties of the object.
    2. Update any references made to data values found in this modified dataset. Signal values are no longer nested under the modified field, but are at the top-level; their properties can be referenced directly.

    For example, see the diff for the DimpVis example triggered by this change. The field of the toggle transform in the trackCountries dataset was changed to country (a field found on the active signal object). When using data values from this dataset, we can reference fields directly, rather than via a nested property.

  • Canonical example specifications are now included with every release.

  • The event selector syntax has been extracted to a separate vega-event-selector package available over NPM.

  • The bandWidth property of ordinal scales has been renamed to bandSize.

  • Clearer error messages are thrown if an unknown transform, signal, or data source is used (h/t @nyurik).

  • Fixed bug with offeting axis titles (h/t @floribon).

  • category20b and category20c added to the schema as permissable values for scale ranges (h/t @okal).

  • Fixed bug with scale function being exposed as axis labels (#440).

  • Fixed bug with legend offseting when axis displayed grid lines (#476).

  • Fixed bug with grid lines not extending correctly when axes are offset (#519).

  • Legends and axis should now share the same formatter options (#504, #506).