in assets/android-metrics.js [108:133]
function plotChart(id, dataset, unit) {
const ctx = document.getElementById(id+"-canvas").getContext('2d');
let chart = new Chart(ctx, {
type: 'scatter',
data: {
datasets: dataset
},
options: {
scales: {
x: {
type: 'time',
time: { unit: 'day', tooltipFormat: 'll' },
title: { display: true, text: 'Timestamp' }
},
y: {
beginAtZero: false,
title: { display: true, text: `${unit}` }
}
},
},
plugins: [backgroundColorPlugin]
});
//displayMetrics(id+"-metrics", title1, values1, title2, values2);
window.allCharts.push(chart);
}