fix: improve time labels

This commit is contained in:
Joshua Seigler 2017-03-07 02:29:12 -05:00
parent 9649e68e23
commit 2a050c2b71

View file

@ -137,7 +137,7 @@ namespace NeatCharts {
if ($this->options['xAxisEnabled']) { if ($this->options['xAxisEnabled']) {
$timeIntervals = [ $timeIntervals = [
'minutes' => [60, 'g:ia'], 'minutes' => [60, 'g:ia'],
'hours' => [60 * 60, 'ga'], 'hours' => [60 * 60, 'D ga'],
'days' => [24 * 60 * 60, 'M j'], 'days' => [24 * 60 * 60, 'M j'],
'years' => [365 * 24 * 60 * 60, 'Y'] 'years' => [365 * 24 * 60 * 60, 'Y']
]; ];