timeCategoryColumnChart.vue
1.01 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<template>
<column-chart :chart-data="chartData"
:chart-settings="chartSettings"/>
</template>
<script>
import ColumnChart from '@/components/_Common/Chart/columnChart';
export default {
name: 'timeCategoryColumnChart',
components: {
ColumnChart,
},
props: {
chartData: {
type: Array,
default: () => [],
},
},
data() {
return {
chartSettings: {
chart: {
height: 400,
},
title: {
text: '시간-드론 타입별 드론 기체 수',
style: {
fontSize: '20px',
},
},
width: '100%',
xAxis: {
categories: [
'00:00 ~ 04:00',
'04:00 ~ 08:00',
'08:00 ~ 12:00',
'12:00 ~ 16:00',
'16:00 ~ 20:00',
'20:00 ~ 24:00',
],
},
yAxis: {
title: {
text: null,
},
min: 0,
},
},
};
},
};
</script>
<style scoped lang="scss">
</style>