index.vue 1 KB
<template>
  <div>
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
import Chart from './chart.vue';
export default {
  data () {
    return {
      cdata: [{
        name: '汉台区',
        value: '6000',
        elseData: {
          // 这里放置地图 tooltip 里想显示的数据
        }
      },
      {
        name: '南郑区',
        value: '8000'
      },
      {
        name: '城固县',
        value: '3000'
      },
      {
        name: '洋县',
        value: '7000'
      },
      {
        name: '西乡县',
        value: '1000'
      },
      {
        name: '镇巴县',
        value: '2000'
      },
      {
        name: '勉县',
        value: '600'
      },
      {
        name: '留坝县',
        value: '3000'
      },
      {
        name: '佛坪县',
        value: '1000'
      },
      {
        name: '宁强县',
        value: '1000'
      },
      {
        name: '略阳县',
        value: '1000'
      }]
    }
  },
  components: {
    Chart
  }
}
</script>