Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SimpleBarChartModel

The charting model layer which includes mainly the chart data and options, as well as some misc. information to be shared among components

Hierarchy

Index

Constructors

constructor

Properties

Protected allDataLabels

allDataLabels: string[]

A list of all the labels that have existed within the lifetime of the chart

type

string[]

Protected colorScale

colorScale: any

Protected patternScale

patternScale: object

Type declaration

Protected services

services: any

Protected updateCallback

updateCallback: Function

Function to be called when data or options update within the model

type

Function

Methods

generateDataLabels

  • generateDataLabels(newData: any): object

get

  • get(property?: string): any

getData

  • getData(): any

getDisplayData

  • getDisplayData(): any

getFillColor

  • getFillColor(label: string): any

getFillScale

  • getFillScale(): any

getOptions

  • getOptions(): any

getStrokeColor

  • getStrokeColor(label: string): any

set

  • set(newState: any, skipUpdate?: boolean): void
  • Parameters

    • newState: any
    • Default value skipUpdate: boolean = false

    Returns void

setColorScale

  • setColorScale(): void

setData

  • setData(newData: any): any

setOptions

  • setOptions(newOptions: any): void

setUpdateCallback

  • setUpdateCallback(cb: Function): void

toggleDataLabel

  • toggleDataLabel(changedLabel: string): void

update

  • update(): void
  • Updates miscellanous information within the model such as the color scales, or the legend data labels

    Returns void

Protected updateAllDataLabels

  • updateAllDataLabels(): void

Object literals

Protected state

state: object

options

options: object

Type declaration

Generated using TypeDoc