Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mock_data.js « charts « pipelines « projects « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84e0ccb828ada957d13098004da140cff74d03e3 (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
export const counts = {
  failed: 2,
  success: 2,
  total: 4,
  successRatio: 50,
  totalDuration: 116158,
};

export const timesChartData = {
  labels: ['as1234', 'kh423hy', 'ji56bvg', 'th23po'],
  values: [5, 3, 7, 4],
};

export const areaChartData = {
  labels: ['01 Jan', '02 Jan', '03 Jan', '04 Jan', '05 Jan'],
  totals: [4, 6, 3, 6, 7],
  success: [3, 5, 3, 3, 5],
};

export const lastYearChartData = {
  ...areaChartData,
  labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
};

export const transformedAreaChartData = [
  {
    name: 'all',
    data: [['01 Jan', 4], ['02 Jan', 6], ['03 Jan', 3], ['04 Jan', 6], ['05 Jan', 7]],
  },
  {
    name: 'success',
    data: [['01 Jan', 3], ['02 Jan', 3], ['03 Jan', 3], ['04 Jan', 3], ['05 Jan', 5]],
  },
];