Skip to content

Commit 1379cd8

Browse files
committed
refactor utilization graph styles for improved clarity and consistency
1 parent 416eee1 commit 1379cd8

File tree

1 file changed

+18
-5
lines changed
  • src/routes/team/[team]/[env]/app/[app]/utilization

1 file changed

+18
-5
lines changed

src/routes/team/[team]/[env]/app/[app]/utilization/+page.svelte

+18-5
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,21 @@
118118
name: 'Requested',
119119
showSymbol: false,
120120
color: requestColor,
121-
lineStyle: { color: requestColor },
121+
lineStyle: {
122+
color: requestColor,
123+
type: request === limit ? 'solid' : 'dashed'
124+
},
122125
markLine: {
123126
symbol: 'none',
124127
data: [
125128
{
126129
yAxis: request,
127-
label: { formatter: 'Requested', position: 'end', color: requestColor },
130+
label: {
131+
formatter: 'Requested',
132+
position: 'end',
133+
color: requestColor,
134+
offset: request === limit ? [0, 8] : [0, 0]
135+
},
128136
lineStyle: { type: 'solid', color: 'transparent' }
129137
}
130138
]
@@ -137,13 +145,18 @@
137145
name: 'Limit',
138146
showSymbol: false,
139147
color: limitColor,
140-
lineStyle: { color: limitColor },
148+
lineStyle: { color: limitColor, type: 'dashed' },
141149
markLine: {
142150
symbol: 'none',
143151
data: [
144152
{
145153
yAxis: limit,
146-
label: { formatter: 'Limit', position: 'end', color: limitColor },
154+
label: {
155+
formatter: 'Limit',
156+
position: 'end',
157+
color: limitColor,
158+
offset: request === limit ? [0, -8] : [0, 0]
159+
},
147160
lineStyle: { type: 'solid', color: 'transparent' }
148161
}
149162
]
@@ -157,7 +170,7 @@
157170
}
158171
159172
const limitColor = '#DE2E2E';
160-
const requestColor = '#3386E0';
173+
const requestColor = '#838C9A';
161174
</script>
162175

163176
<GraphErrors errors={$ResourceUtilizationForApp.errors} />

0 commit comments

Comments
 (0)