vega-functions

Custom functions for the Vega expression language.

Usage no npm install needed!

<script type="module">
  import vegaFunctions from 'https://cdn.skypack.dev/vega-functions';
</script>

README

vega-functions

Function implementations for the Vega expression language. Unlike the basic utility functions included in the vega-expression package, this package includes custom expression functions, many of which are specific to Vega dataflows.

Provided Functions

This package provides the following expression functions. All other constants and functions are provided by the base vega-expression package.

Type Checking Functions

Type Coercion Functions

Math Functions

Date/Time Functions

Array Functions

String Functions

Object Functions

Formatting Functions

Color Functions

Event Functions

Scale and Projection Functions

Geographic Functions

Shape Functions

  • geoShape (used internally for mark clipping)
  • pathShape (used internally for mark clipping)

Data Functions

  • indata
  • data
  • setdata (used internally for scale domain data)
  • modify (used internally for trigger updates)

Dataflow Functions

  • encode (used internally for signal updates)

Tree (Hierarchy) Functions

Browser Functions

Logging Functions