Module: Enums::DataVisualizationPalette

Defined in:
app/models/concerns/enums/data_visualization_palette.rb

Overview

These color palettes are part of the Pajamas Design System. See design.gitlab.com/data-visualization/color/#categorical-data

Class Method Summary collapse

Class Method Details

.colorsObject


7
8
9
10
11
12
13
14
15
# File 'app/models/concerns/enums/data_visualization_palette.rb', line 7

def self.colors
  {
    blue: 0,
    orange: 1,
    aqua: 2,
    green: 3,
    magenta: 4
  }
end

.weightsObject


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/concerns/enums/data_visualization_palette.rb', line 17

def self.weights
  {
    '50'  =>  0,
    '100' =>  1,
    '200' =>  2,
    '300' =>  3,
    '400' =>  4,
    '500' =>  5,
    '600' =>  6,
    '700' =>  7,
    '800' =>  8,
    '900' =>  9,
    '950' =>  10
  }
end