I use the morris chart to visualize my date, however in xkey, which is the Year, shows the number as year, not day.
This is my code that shows the value of the day after 5 days
Morris.Line({ element: 'reports-per-day', data: [{ y: (todayDay - 4).toString(), a: <?php echo $day[4]; ?> }], xkey: 'y', ykeys: ['a'], labels: ['Reports/Year'], hideHover: 'auto', resize: false });
However, the day is displayed as a year with 19 added at the beginning of the number, how can I get rid of this?

source share