1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| <template>
| <div>
| <Chart :cdata="cdata" />
| </div>
| </template>
|
| <script>
| import Chart from './chart.vue';
| export default {
| data () {
| return {
| cdata: {
| xData: ["data1", "data2", "data3", "data4", "data5", "data6"],
| seriesData: [
| { value: 10, name: "data1" },
| { value: 5, name: "data2" },
| { value: 15, name: "data3" },
| { value: 25, name: "data4" },
| { value: 20, name: "data5" },
| { value: 35, name: "data6" }
| ]
| }
| }
| },
| components: {
| Chart,
| },
| mounted () {
| },
| methods: {
| }
| }
| </script>
|
| <style lang="scss" scoped>
| </style>
|
|