Table of Contents generated with DocToc
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.
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.