I would like to ask how to choose which data labels should be visible on the line chart? It looks like on the screen
But it's not nice. I would like to have visible only every second the label. I thought to check how many labels there are. Then if more than X choose only some, but maybe there is something easier.
Here is the code from labels:
options: {
plugins: {
datalabels: {
align: 'top',
color: '#000000',
font: {
weight: 'bold',
size: '16'
}
}
},
title: {
display: true,
text: 'Level'
}
}
Any ideas?