mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
show the aggregation strategy for non-native scope plots
This commit is contained in:
parent
cb4020ffdf
commit
286fde3d5a
@ -142,7 +142,8 @@
|
|||||||
hooks: {
|
hooks: {
|
||||||
draw: [(u) => {
|
draw: [(u) => {
|
||||||
// Draw plot type label:
|
// Draw plot type label:
|
||||||
let text = `${scope}${plotSeries.length > 2 ? 's' : ''}${useStatsSeries ? ': min/avg/max' : ''}`
|
let text = `${scope}${plotSeries.length > 2 ? 's' : ''}${
|
||||||
|
useStatsSeries ? ': min/avg/max' : (metricConfig != null && scope != metricConfig.scope ? ` (${metricConfig.aggregation})` : '')}`
|
||||||
u.ctx.save()
|
u.ctx.save()
|
||||||
u.ctx.textAlign = 'start' // 'end'
|
u.ctx.textAlign = 'start' // 'end'
|
||||||
u.ctx.fillStyle = 'black'
|
u.ctx.fillStyle = 'black'
|
||||||
|
Loading…
Reference in New Issue
Block a user