[+] Use the chart data to show chart
This commit is contained in:
@@ -5,7 +5,7 @@ import {Course} from '@/components/app/app';
|
||||
})
|
||||
export default class GraphOverall extends Vue
|
||||
{
|
||||
@Prop({required: true}) courses: any;
|
||||
@Prop({required: true}) chart: any;
|
||||
|
||||
public chartData =
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div id="overall">
|
||||
<p>这是 Overall</p>
|
||||
<graph-overall :courses="courses"></graph-overall>
|
||||
<graph-overall :chart="convertCharts"></graph-overall>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user