Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (26 loc) · 1.1 KB

readme.md

File metadata and controls

35 lines (26 loc) · 1.1 KB

Table of Contents generated with DocToc

Tranforms

Transforms process a data frame to filter data, calculate new fields, or derive new data frames. Transforms are typically specified within the transform array of a data definition. In addition, transforms that do not filter or generate new data objects can be used within the transform array of a mark definition to specify post-encoding transforms.

Add Tranforms

To add a new transform to the collection of available transforms:

import {visualTransforms} from 'd3-visualize';

visualTransforms.add('mytransform', {
    schema: {
    },
    transform (frame, config) {
        ...
    }
});

The optional schema object is used to validate transform config parameters. If not provided no validation is performed.