in modules/performance-statistics-ext/report/js/operationsTab.js [143:190]
function drawCacheBar() {
$("#operationsCharts").prepend('<canvas class="my-4" id="operationBarChart" height="60"/>');
var data = [];
var colors = [];
$.each(CACHE_OPERATIONS, function (k, opName) {
data[k] = opsCountPerType[opName];
colors[k] = CACHE_OPERATIONS_COLORS[opName];
});
new Chart(document.getElementById("operationBarChart"), {
type: 'bar',
data: {
datasets: [{
data: data,
backgroundColor: colors,
label: 'Total count',
}],
labels: CACHE_OPERATIONS
},
options: {
scales: {
yAxes: [{
display: true,
scaleLabel: {
display: true,
labelString: 'Count'
},
ticks: {
suggestedMin: 0,
suggestedMax: 10
}
}]
},
legend: {
display: false
},
title: {
display: true,
text: 'Distribution of count operations by type',
fontSize: 20
},
animation: false
}
});
}