[O] Make the x axis type time
This commit is contained in:
@@ -33,15 +33,7 @@ export default class CourseScatter extends Vue
|
|||||||
// X axis represents course names
|
// X axis represents course names
|
||||||
xAxis:
|
xAxis:
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'time',
|
||||||
axisLabel: {
|
|
||||||
interval: 0,
|
|
||||||
inside: false,
|
|
||||||
rotate: 90,
|
|
||||||
|
|
||||||
// Truncate text length
|
|
||||||
formatter: (value: string) => value.length <= 16 ? value : value.substr(0, 14) + '...'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Y axis represents GPAs and MaxGPAs
|
// Y axis represents GPAs and MaxGPAs
|
||||||
|
|||||||
Reference in New Issue
Block a user