I use morris chart to visualize my date, however in the xkey, which is the Year, shows the number as a year instead of the day.
This is my code that shows the value of the day 5 days from now
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 shown as a year with 19 added at the start of the number, how can I get rid of this?