[O] Format x axis dates to MMM DD format

This commit is contained in:
Hykilpikonna
2019-10-20 18:28:07 -04:00
parent 7cfe928fcc
commit bcf222a38b
@@ -3,6 +3,7 @@ import {Assignment, Course} from '@/components/app/app';
import {GPAUtils} from '@/utils/gpa-utils';
import Constants from '@/constants';
import {FormatUtils} from '@/utils/format-utils';
import moment from 'moment';
@Component({
})
@@ -52,6 +53,10 @@ export default class CourseScatter extends Vue
xAxis:
{
type: 'time',
axisLabel:
{
formatter: (name: any) => moment(name).format('MMM DD')
},
max: FormatUtils.toChartDate(new Date())
},