Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Marker

Hierarchy

  • Marker

Index

Object literals

Object literals

Static Private colorSets

colorSets: object

categorical

categorical: string[] = [// generated by http://vrl.cs.brown.edu/color'#069668','#75e7dd','#145a6a','#c5d5f0','#82269b','#5361c7','#e8a2de','#479abc','#11e38c','#0b5313','#bbcf7a','#6e390d','#f4d403','#ae301f','#34f50e','#7c8a4f','#f6bb86','#b5753e','#fe1d66','#9bea30',]

colorBrewer

colorBrewer: string[] = ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3']

Static colors

colors: object

autoColorFromStates

  • autoColorFromStates(states: Array<string | undefined>, colorSet?: string[]): Array<ILabel | undefined>
  • Get ILabels with colors auto set based on a the states passed into the function. The function can at most generate 20 unique colors. If more states exist than the colorset, the states that occur the most number of times will receive ILabels and the others will get undefined.

    Parameters

    • states: Array<string | undefined>

      the set of states to auto generate colors for

    • Default value colorSet: string[] = Marker.colorSets.colorBrewer

    Returns Array<ILabel | undefined>

    each element in the array will correspond to each state. There will be a single ILabel object for each unique state name (likely occurring multiple times in the array)

Generated using TypeDoc