in modules/performance-statistics-ext/report/js/txTab.js [29:125]
function drawTxCharts() {
var cacheId = txSearchCachesSelect.val();
var nodeId = txSearchNodesSelect.val();
txCharts.empty();
$.each(TX_OPERATIONS, function (k, opName) {
var txChartId = opName + "TxChart";
txCharts.append('<canvas class="my-4" id="' + txChartId + '" height="120""></canvas>');
new Chart(document.getElementById(txChartId), {
type: 'line',
data: {
datasets: prepareTxDatasets(nodeId, cacheId, opName)
},
options: {
scales: {
xAxes: [{
type: 'time',
time: {
displayFormats: {
'millisecond': 'HH:mm:ss',
'second': 'HH:mm:ss',
'minute': 'HH:mm:ss',
'hour': 'HH:mm'
}
},
scaleLabel: {
display: true,
labelString: 'Date'
}
}],
yAxes: [{
display: true,
scaleLabel: {
display: true,
labelString: 'Count'
},
ticks: {
suggestedMin: 0,
suggestedMax: 10
}
}]
},
legend: {
display: true
},
title: {
display: true,
text: "Count of [" + opName + "]",
fontSize: 20
},
animation: false
}
})
});
txCharts.prepend('<canvas class="my-4" id="txHistogram" height="80""></canvas>');
new Chart(document.getElementById("txHistogram"), {
type: 'bar',
data: {
labels: buildTxHistogramBuckets(),
datasets: prepareTxHistogramDatasets(nodeId, cacheId)
},
options: {
scales: {
xAxes: [{
gridLines: {
offsetGridLines: true
},
scaleLabel: {
display: true,
labelString: 'Duration of transaction'
}
}],
yAxes: [{
display: true,
scaleLabel: {
display: true,
labelString: 'Count of transactions'
}
}]
},
legend: {
display: false
},
title: {
display: true,
text: "Histogram of transaction durations",
fontSize: 20
},
animation: false
}
});
}