feat: add active to federation chart

This commit is contained in:
syuilo
2022-03-07 15:10:16 +09:00
parent 8ca8d77c1e
commit ec64b5ea0b
5 changed files with 30 additions and 2 deletions

View File

@ -71,6 +71,7 @@ const colors = {
purple: '#e300db',
orange: '#fe6919',
lime: '#c7f400',
cyan: '#00efef',
};
const colorSets = [colors.blue, colors.green, colors.yellow, colors.red, colors.purple];
const getColor = (i) => {
@ -388,11 +389,16 @@ export default defineComponent({
type: 'area',
data: format(raw.stalled),
color: colors.red,
}, {
name: 'Active',
type: 'line',
data: format(raw.active),
color: colors.lime,
}, {
name: 'Pub & Sub',
type: 'line',
data: format(raw.pubsub),
color: colors.lime,
color: colors.cyan,
}, {
name: 'Pub',
type: 'line',