From 09e25e6a02a851fe69e5871dd9a2ae5320f61b18 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 15 Mar 2019 13:09:19 +0900 Subject: Better queue chart --- src/client/app/admin/views/queue.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/client/app/admin/views/queue.vue') diff --git a/src/client/app/admin/views/queue.vue b/src/client/app/admin/views/queue.vue index 63ff87e7d3..3c23444c4d 100644 --- a/src/client/app/admin/views/queue.vue +++ b/src/client/app/admin/views/queue.vue @@ -9,7 +9,7 @@ Process - + Active @@ -36,7 +36,7 @@ Process - + Active @@ -131,8 +131,10 @@ export default Vue.extend({ }, mounted() { - const chartOpts = { + const chartOpts = id => ({ chart: { + id, + group: 'queue', type: 'area', height: 200, animations: { @@ -186,10 +188,10 @@ export default Vue.extend({ show: false, min: 0, } - }; + }); - this.inboxChart = new ApexCharts(this.$refs.inboxChart, chartOpts); - this.deliverChart = new ApexCharts(this.$refs.deliverChart, chartOpts); + this.inboxChart = new ApexCharts(this.$refs.inboxChart, chartOpts('a')); + this.deliverChart = new ApexCharts(this.$refs.deliverChart, chartOpts('b')); this.inboxChart.render(); this.deliverChart.render(); -- cgit v1.2.3-freya