[Chartjs]-Chart only prints out first value using jquery ajax php

0👍

I’m going to take a wild guess that the value of male is 27. In which case, looking at the y-axis reveals the problem:

enter image description here

What you probably need to do is set beginAtZero: true:

options: {
    scales: {
        yAxes: [{
            ticks: {
                beginAtZero: true
            }
        }]
    }
}

Leave a comment