Is it possible to display only points in line chart? I have this basic line chart and I want to hide the line and the fill inside it so it only shows the points.
Here is my code:
var renChart = new Chart($('#ren-chart'), {
type: 'line',
data: {
labels: ren_labels,
datasets: [{
label: 'Renovation',
data: ren_data,
backgroundColor: 'rgba(244, 81, 30, 0.5)',
borderColor: 'rgba(244, 81, 30, 0.8)',
pointBackgroundColor: 'rgba(244, 81, 30, 0.5)',
pointBorderColor: 'rgba(244, 81, 30, 0.8)',
pointRadius: 5
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
stepSize: 20
}
}]
}
}
});
Any help on this is appreciated. Thanks in advance.