Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/utils/convertItemsWithSegments"

Index

Variables

ldget

ldget: any = require("lodash/get")

Functions

computeRange

computeRenderedValues

convertItemsWithSegments

  • convertItemsWithSegments(dataView: DataView, onCreateItem: any, settings?: IColorSettings): object
  • Converts the dataView into a set of items that have a name, and a set of value segments. Value segments being the grouped values from the dataView mapped to a color Note This will only work with dataViews/dataViewMappings configured a certain way

    Parameters

    • dataView: DataView

      The dataView to convert

    • onCreateItem: any

      A function that gets called when an item is created

    • Optional settings: IColorSettings

      The color settings to use when converting

    Returns object

createSegments

  • createSegments(columns: DataViewValueColumns, segmentData: IColoredObject[], rowIdx: number): object
  • Creates segments for the given values, and the information on how the value is segmented

    Parameters

    • columns: DataViewValueColumns

      The columns to create segment for

    • segmentData: IColoredObject[]

      The data for the segments

    • rowIdx: number

      The row to generate the segment for

    Returns object

dataSupportsColorizedInstances

  • dataSupportsColorizedInstances(dv: DataView): boolean

dataSupportsDefaultColor

  • dataSupportsDefaultColor(dv: DataView): boolean

dataSupportsGradients

  • dataSupportsGradients(dv: DataView): boolean

dataSupportsValueSegments

  • dataSupportsValueSegments(dv: DataView): boolean

Generated using TypeDoc