How to use the vue-echarts.registerMap function in vue-echarts

To help you get started, we’ve selected a few vue-echarts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github i-Map / iMap / src / renderer / components / Page / Chart.vue View on Github external
makeupChart() {
      if(this.selectMapType === '')
        this.$Message.error('请选择地图类型')
      else {
        if(this.excelData.data !== undefined) {
          this.userOptions.mapType = this.selectMapType
          this.option = map.getMapData(this.excelData, this.userOptions)
          this.selectMapType === 'china' ?  ECharts.registerMap('china', chinaMap) : ECharts.registerMap('world', worldMap)
          this.showChart = true
          this.showEditMapBtn = true
          let updateMapDate = new Date(_.now()).toLocaleString()
          ajax.post({
            url: url.ASYNC_UPLOAD,
            data: {
              userId: this.userId,
              mapData: this.excelData,
              updateMapDate: updateMapDate
            }
          }).then(data => {})
        }
        else {
          this.$Spin.show()
          ajax.post({
            url: url.ASYNC_DOWNLOAD,
github i-Map / iMap / src / renderer / components / Page / Chart.vue View on Github external
mapZoomUp() {
      if(this.userOptions.zoom !== 5) {
        this.userOptions.zoom ++
        this.userOptions.roam = true
        this.option = map.getMapData(this.excelData, this.userOptions)
        this.selectMapType === 'china' ?  ECharts.registerMap('china', chinaMap) : ECharts.registerMap('world', worldMap)
      }
    },
    mapZoomDown() {

vue-echarts

Vue.js component for Apache ECharts™.

MIT
Latest version published 5 days ago

Package Health Score

86 / 100
Full package analysis

Similar packages