show the aggregation strategy for non-native scope plots

This commit is contained in:
Lou Knauer 2022-07-14 16:25:21 +02:00
parent cb4020ffdf
commit 286fde3d5a

View File

@ -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'