Home Manual Reference Source Repository
import SegmentLayer from 'waves-ui/src/helpers/segment-layer.js'
public class | source

SegmentLayer

Extends:

src/core/layer~Layer → SegmentLayer

Helper to create a segment layer.

example usage

Constructor Summary

Public Constructor
public

constructor(data: Array, options: Object, accessors: Object)

Public Constructors

public constructor(data: Array, options: Object, accessors: Object) source

Params:

NameTypeAttributeDescription
data Array

The data to render.

options Object

An object to configure the layer.

accessors Object

The accessors to configure the mapping between shapes and data.