Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/utils/calculateSegments"

Index

Functions

Functions

calculateSegments

  • calculateSegments(columns: DataViewValueColumns, defaultColor?: string, gradient?: IGradient, segmentColors?: object[]): Array<object>
  • A utility method that takes a dataView, and breaks down the values into named segments with colors Colorizing prority: "#ccc" < defaultColor < gradient < segmentColors

    Parameters

    • columns: DataViewValueColumns

      The set of columns in the dataView

    • Optional defaultColor: string

      The default color to use

    • Optional gradient: IGradient

      The gradient to use

    • Optional segmentColors: object[]

      The colors for the individual instances of segments to use

      • color: string
      • Optional identity?: any

    Returns Array<object>

Generated using TypeDoc