question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] heatmap in geo

See original GitHub issue

Version

5.0.0

Steps to reproduce

基于geo坐标系的热力图

{
  "geo": {
    "map": "china",
    "roam": true
  },
  "visualMap": {
    "show": false,
    "min": 0,
    "max": 5,
    "inRange": {
      "color": [
        "blue",
        "blue",
        "green",
        "yellow",
        "red"
      ]
    }
  },
  "series": [
    {
      "type": "heatmap",
      "coordinateSystem": "geo",
      "geoIndex": 0,
      "data": [
        [
          120.14322240845,
          30.236064370321,
          1
        ],
        [
          120.14280555506,
          30.23633761213,
          1
        ],
        [
          120.14307598649,
          30.236125905084,
          1
        ],
        [
          120.14301682797,
          30.236035316745,
          1
        ],
        [
          120.1428734612,
          30.236160551632,
          1
        ],
        [
          120.14200215328,
          30.23595702204,
          1
        ],
        [
          120.14138577045,
          30.236113748704,
          1
        ],
        [
          120.1400398833,
          30.235973050702,
          1
        ],
        [
          120.13893453465,
          30.23517220446,
          1
        ],
        [
          120.1382899739,
          30.234062922977,
          1
        ]
      ],
      "pointSize": 5,
      "blurSize": 6
    }
  ]
}

What is expected?

正常展示

What is actually happening?

在4.9.0中正常展示 在5.0.0中报错
image Uncaught TypeError: coordSys.dataToRect is not a function at HeatmapView._renderOnCartesianAndCalendar (echarts.js:59155)
at HeatmapView.incrementalRender (echarts.js:59085)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
plainheartcommented, Oct 19, 2021

@kirincc 好像没加载 ECharts 的百度地图插件。这是为什么坐标系为 null 的原因。

import 'echarts/extension/bmap/bmap'
1reaction
plainheartcommented, Dec 29, 2020

我测试了下,并未发现有报错的情况,https://www.makeapie.com/editor.html?c=x0-0jU_YJG&v=1 请检查是否正在使用按需引入导致少引了部分组件。

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] heatmap in geo · Issue #13894 · apache/echarts - GitHub
Version 5.0.0 Steps to reproduce 基于geo坐标系的热力图{ "geo": { "map": "china", "roam": true } ... [bug] heatmap in geo #13894.
Read more >
Bug when geo heatmap is embebed in a page - MongoDB
I have a dashboard in mongo DB charts with only one chart, this chart is a geo heatmap. I created my heatmap and...
Read more >
Geoserver heatmap not rendered correctly - Stack Overflow
I am displaying a heatmap generated with geoserver on my google map. It work pretty fine but the heatmap is tiled, even if...
Read more >
Geo heatmap charts | ThoughtSpot Software
Geo heatmap charts display the value of the measure through the depth of color of the area. Use geo heatmap charts to see...
Read more >
Weighted geo-heatmap using gmaps - Medium
Summary: this little blog guides you to create a proper weighted heatmap using gmaps, google map API and suggest to avoid using folium...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found