0π
β
It is possible to set point: { radius: 1 }
for one data value.
var ctx = document.getElementById('chartJSContainer').getContext('2d');
var barChartData = {
labels: ['1 Aug'],
datasets: [{
label: 'Sales',
borderWidth: 0,
data: [10],
borderWidth: 3
}]
};
var myBar = new Chart(ctx, {
type: 'line',
data: barChartData,
options: {
elements: {
line: {
tension: 0.5
},
point: {
radius: 1
}
}
}
});
Source:stackexchange.com