Using chart.js (v3.7.0)
Set up a Radar chart using multiple datasets that include 0
values (and needs to be kept as 0
for tooltip & data purposes).
Trying to find a way to set/include a drawn tick marker for 0
values on the chart.
beginAtZero
option has no effect whatsoever on the initial tick display position.
Current Chart Display (image) – Desired Chart Display (image)
Is this what’s supposed to happen with the beginAtZero
option, and there’s been some sort of regression? If not, is this even possible with chart.js?
Options:
options = {
scales: {
r: {
min: 0,
max: 99,
beginAtZero: true,
angleLines: {
display: false
},
ticks: {
display: false,
stepSize: 33.333
}
}
}
}
Sample Data:
data = {
labels: ['Field 1','Field 2','Field 3','Field 4','Field 5','Field 6' ],
datasets: [
{
label: 'Dataset 1',
data: [ 10, 99, 0, 76, 0, 0 ]
},
{
label: 'Dataset 2',
data: [ 99, 35, 0, 0, 54, 0 ]
}
],
}
Thanks in advance!