|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="gcharts" :id="id"></div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<script>
|
|
|
import G2 from "@antv/g2";
|
|
|
export default {
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
if(this.charData.length !== 0){
|
|
|
this.chart = new G2.Chart({
|
|
|
container: this.id,
|
|
|
- width: 810,
|
|
|
+ width: 510,
|
|
|
height: 210,
|
|
|
});
|
|
|
this.chart.source(this.charData);
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
type: "line",
|
|
|
},
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
this.chart.line().position("name*value")
|
|
|
.color('type')
|
|
|
.shape('smooth');
|