General developer forum

chart js moodle standard query

Picture of AL Rachels
Re: chart js moodle standard query
Core developersParticularly helpful MoodlersPlugin developersTesters

Did you try using the step setting?

$xaxis = new chart_axis();
$axis->set_stepsize(5); // Chart steps will be displayed as  5, 10, 15, 20...
If you change the 5 to 1, maybe it will give you the equivalent of autoskip = false.

$xaxis = new chart_axis();
$axis->set_stepsize(1); // Chart steps should be displayed as  1, 2, 3, 4...

Average of ratings: -