[+] 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
|
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,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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user