-
Bug
-
Resolution: Fixed
-
Major
-
4.1 regressions, 4.1.8, 4.2.5, 4.3.2, 4.5
-
1
-
WP Sprint 2024-I4.3 (Clones), WP Sprint 2025-I1.0 (Clones), WP Sprint 2025-I1.1 (Clones), WP Sprint 2025-I1.2 (Clones)
The Chart API has options for axes such as set_label() and set_stepsize(). These appear to have stopped working in Moodle 4.1 onwards.
The steps below show that the y-axis label is not set. In my tests set_stepsize() doesn't work either.
Steps to reproduce issue
- Create a course. (Steps 1 and 2 can be skipped by logging into https://sandbox.moodledemo.net as teacher and going to My first course).
- Enrol a student.
- From the course participants page click on the student then click on All logs (under Reports).
Expected results
The y-axis has the label 'Hits'.
Actual results
The y-axis has no label. If you try these steps with Moodle 4.0 the label appears as expected (for example, on https://sandbox400.moodledemo.net).