From 4853bc9414c3a38f9b8b79efe2b9ba0185d73e76 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 3 Nov 2018 13:08:49 +0900 Subject: [PATCH] Update src/client/app/admin/views/charts.vue --- src/client/app/admin/views/charts.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/app/admin/views/charts.vue b/src/client/app/admin/views/charts.vue index e95746a83b..0fe5b7c812 100644 --- a/src/client/app/admin/views/charts.vue +++ b/src/client/app/admin/views/charts.vue @@ -41,7 +41,7 @@ import Vue from 'vue'; import * as ApexCharts from 'apexcharts'; -const limit = 60; +const limit = 80; const sum = (...arr) => arr.reduce((r, a) => r.map((b, i) => a[i] + b)); const negate = arr => arr.map(x => -x); @@ -208,24 +208,28 @@ export default Vue.extend({ return { series: [{ name: 'All', + type: 'line', data: this.format(type == 'combined' ? sum(this.stats.notes.local.inc, negate(this.stats.notes.local.dec), this.stats.notes.remote.inc, negate(this.stats.notes.remote.dec)) : sum(this.stats.notes[type].inc, negate(this.stats.notes[type].dec)) ) }, { name: 'Renotes', + type: 'area', data: this.format(type == 'combined' ? sum(this.stats.notes.local.diffs.renote, this.stats.notes.remote.diffs.renote) : this.stats.notes[type].diffs.renote ) }, { name: 'Replies', + type: 'area', data: this.format(type == 'combined' ? sum(this.stats.notes.local.diffs.reply, this.stats.notes.remote.diffs.reply) : this.stats.notes[type].diffs.reply ) }, { name: 'Normal', + type: 'area', data: this.format(type == 'combined' ? sum(this.stats.notes.local.diffs.normal, this.stats.notes.remote.diffs.normal) : this.stats.notes[type].diffs.normal