Code: Select all
new Chart(
document.getElementById(config.id),
{
type: 'line',
data: {
labels: data.map(row => row.arrival_time),
datasets: [
{
label: config.label,
data: data.map(row => row[dataName]),
radius : 0
}
]
},
options :
{
parsing: false,
plugins: {
decimation: {
enabled: true,
algorithm: 'lttb',
samples : 50,
},
},
}
}
);