mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
chore: tweak chart labels
This commit is contained in:
parent
75c7347428
commit
1a6cda52da
@ -370,27 +370,27 @@ export default defineComponent({
|
|||||||
const raw = await os.api('charts/federation', { limit: props.limit, span: props.span });
|
const raw = await os.api('charts/federation', { limit: props.limit, span: props.span });
|
||||||
return {
|
return {
|
||||||
series: [{
|
series: [{
|
||||||
name: 'Instances total',
|
name: 'Total',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
data: format(raw.instance.total),
|
data: format(raw.instance.total),
|
||||||
color: '#888888',
|
color: '#888888',
|
||||||
}, {
|
}, {
|
||||||
name: 'Instances inc/dec',
|
name: 'Inc/Dec',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
data: format(sum(raw.instance.inc, negate(raw.instance.dec))),
|
data: format(sum(raw.instance.inc, negate(raw.instance.dec))),
|
||||||
color: colors.purple,
|
color: colors.purple,
|
||||||
}, {
|
}, {
|
||||||
name: 'Inbox instances',
|
name: 'Received',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
data: format(raw.inboxInstances),
|
data: format(raw.inboxInstances),
|
||||||
color: colors.blue,
|
color: colors.blue,
|
||||||
}, {
|
}, {
|
||||||
name: 'Delivered instances',
|
name: 'Delivered',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
data: format(raw.deliveredInstances),
|
data: format(raw.deliveredInstances),
|
||||||
color: colors.green,
|
color: colors.green,
|
||||||
}, {
|
}, {
|
||||||
name: 'Stalled instances',
|
name: 'Stalled',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
data: format(raw.stalled),
|
data: format(raw.stalled),
|
||||||
color: colors.red,
|
color: colors.red,
|
||||||
|
Loading…
Reference in New Issue
Block a user