summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/components/graph/path.vue
blob: 043f1bf66bbfb8ffb9bb9b86487bc40cbc8da374 (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
<script>
  export default {
    props: {
      generatedLinePath: {
        type: String,
        required: true,
      },
      generatedAreaPath: {
        type: String,
        required: true,
      },
      lineColor: {
        type: String,
        required: true,
      },
      areaColor: {
        type: String,
        required: true,
      },
    },
  };
</script>
<template>
  <g>
    <path
      class="metric-area"
      :d="generatedAreaPath"
      :fill="areaColor"
      transform="translate(-5, 20)">
    </path>
    <path
      class="metric-line"
      :d="generatedLinePath"
      :stroke="lineColor"
      fill="none"
      stroke-width="1"
      transform="translate(-5, 20)">
    </path>
  </g>
</template>