[O] Format x axis dates to MMM DD format
This commit is contained in:
@@ -3,6 +3,7 @@ import {Assignment, Course} from '@/components/app/app';
|
|||||||
import {GPAUtils} from '@/utils/gpa-utils';
|
import {GPAUtils} from '@/utils/gpa-utils';
|
||||||
import Constants from '@/constants';
|
import Constants from '@/constants';
|
||||||
import {FormatUtils} from '@/utils/format-utils';
|
import {FormatUtils} from '@/utils/format-utils';
|
||||||
|
import moment from 'moment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
})
|
})
|
||||||
@@ -52,6 +53,10 @@ export default class CourseScatter extends Vue
|
|||||||
xAxis:
|
xAxis:
|
||||||
{
|
{
|
||||||
type: 'time',
|
type: 'time',
|
||||||
|
axisLabel:
|
||||||
|
{
|
||||||
|
formatter: (name: any) => moment(name).format('MMM DD')
|
||||||
|
},
|
||||||
max: FormatUtils.toChartDate(new Date())
|
max: FormatUtils.toChartDate(new Date())
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user