apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.54k stars 19.61k forks source link

got error: model or view can not be found by params #14818

Open paul-xiao opened 3 years ago

paul-xiao commented 3 years ago

Version

5.1.0

Steps to reproduce

 const mapJson = ... // 省/市geo.json  eg: 360000.json
 echarts.registerMap(name, mapJson);
      let option = {
        series: [
          {
            name: "map",
            type: "map",
            map: name, //自定义扩展图表类型
            label: {
              show: true,
            },
            itemStyle: {
              areaColor: "rgba(23, 27, 57,0)",
              borderColor: "#1dc199",
              borderWidth: 1,
            },
            data: [

            ],
          },
        ],
      }
      myChart.setOption(option);

load echarts geo map as above, when mousemove/mouseover the geo map, got warnnings like model or view can not be found by params, is it realted to echarts versions?

What is expected?

no warnnings

What is actually happening?

got warnning: model or view can not be found by params

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

paul-xiao commented 3 years ago

works fine on echarts@4.3, but got error on echarts@5.x, is there any demos/examples of echarts@5.x about geomap useage?

toknikni commented 3 years ago

i got this warning too...

susu883 commented 2 years ago

i got too,so how to solve?

iscottt commented 1 year ago

Has this problem been resolved yet?