summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/utils/measurements.js
blob: 7c771f43eeed30a5faa43889b832b80d3a897e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export default {
  small: {
    // Covers both xs and sm screen sizes
    margin: {
      top: 40,
      right: 40,
      bottom: 50,
      left: 40,
    },
    legends: {
      width: 15,
      height: 3,
      offsetX: 20,
      offsetY: 32,
    },
    backgroundLegend: {
      width: 30,
      height: 50,
    },
    axisLabelLineOffset: -20,
  },
  large: {
    // This covers both md and lg screen sizes
    margin: {
      top: 80,
      right: 80,
      bottom: 100,
      left: 80,
    },
    legends: {
      width: 15,
      height: 3,
      offsetX: 20,
      offsetY: 34,
    },
    backgroundLegend: {
      width: 30,
      height: 150,
    },
    axisLabelLineOffset: 20,
  },
  xTicks: 8,
  yTicks: 3,
};