enhance: improve federation chart

This commit is contained in:
syuilo
2022-02-10 17:45:12 +09:00
parent 7ba5512a65
commit 0afebcfd9e
25 changed files with 199 additions and 64 deletions

View File

@ -370,14 +370,14 @@ export default defineComponent({
const raw = await os.api('charts/federation', { limit: props.limit, span: props.span });
return {
series: [{
name: 'Total',
name: 'Sub',
type: 'area',
data: format(raw.instance.total),
color: '#888888',
data: format(raw.sub),
color: colors.orange,
}, {
name: 'Inc/Dec',
name: 'Pub',
type: 'area',
data: format(sum(raw.instance.inc, negate(raw.instance.dec))),
data: format(raw.pub),
color: colors.purple,
}, {
name: 'Received',