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

6bc51xsx  于 2022-12-31  发布在  Echarts
关注(0)|答案(4)|浏览(1384)

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

30byixjq

30byixjq1#

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! 🍵

xn1cxnb4

xn1cxnb42#

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?

ugmeyewa

ugmeyewa3#

i got this warning too...

lvjbypge

lvjbypge4#

i got too,so how to solve?

相关问题