[O] Override VE chart settings
This commit is contained in:
@@ -11,6 +11,16 @@ export default class CourseScatter extends Vue
|
||||
// @ts-ignore
|
||||
@Prop({required: true}) course: Course;
|
||||
|
||||
/**
|
||||
* Override options
|
||||
*
|
||||
* @param options Original options (Unused)
|
||||
*/
|
||||
afterConfig(options: any)
|
||||
{
|
||||
return this.chartSettings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate settings
|
||||
*/
|
||||
@@ -98,10 +108,4 @@ export default class CourseScatter extends Vue
|
||||
{
|
||||
return assignments.map(a => [FormatUtils.toChartDate(a.date), (a.score / a.scoreMax * 100).toFixed(2)]);
|
||||
}
|
||||
|
||||
afterConfig(options: any)
|
||||
{
|
||||
console.log(options);
|
||||
return options;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user