External module "lib/utils/calculateSegments"
Functions
calculateSegments
calculateSegments( columns: DataViewValueColumns , defaultColor?: string , gradient?: IGradient , segmentColors?: object [] ) : Array < object >
Parameters
columns: DataViewValueColumns
Optional defaultColor: string
Optional gradient: IGradient
Optional segmentColors: object []
color: string
Optional identity?: any
Returns Array < object >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A utility method that takes a dataView, and breaks down the values into named segments with colors Colorizing prority: "#ccc" < defaultColor < gradient < segmentColors