[+] Use the chart data to show chart

This commit is contained in:
Hykilpikonna
2019-08-27 20:55:33 +08:00
parent 36a211e186
commit 489328c624
3 changed files with 3 additions and 3 deletions
@@ -5,7 +5,7 @@ import {Course} from '@/components/app/app';
}) })
export default class GraphOverall extends Vue export default class GraphOverall extends Vue
{ {
@Prop({required: true}) courses: any; @Prop({required: true}) chart: any;
public chartData = public chartData =
{ {
@@ -1,6 +1,6 @@
<template> <template>
<div id="graph-overall"> <div id="graph-overall">
<ve-line :data="chartData" :extend="{series: {smooth: false}}"></ve-line> <ve-line :data="chart" :extend="{series: {smooth: false}}"></ve-line>
</div> </div>
</template> </template>
+1 -1
View File
@@ -1,7 +1,7 @@
<template> <template>
<div id="overall"> <div id="overall">
<p>这是 Overall</p> <p>这是 Overall</p>
<graph-overall :courses="courses"></graph-overall> <graph-overall :chart="convertCharts"></graph-overall>
</div> </div>
</template> </template>