You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/07/03 06:15:12 UTC

[GitHub] zhangjiaqing opened a new issue #8630: 热力图和散点图不能同时设置么?

zhangjiaqing opened a new issue #8630: 热力图和散点图不能同时设置么?
URL: https://github.com/apache/incubator-echarts/issues/8630
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   当同时设置热力图和散点图数据时,会报错
   Cannot read property 'targetVisuals' of undefined
   导致数据无法正常显示
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4
   + Browser version [浏览器类型和版本]: chrome 67
   + OS Version [操作系统类型和版本]: window 7
   
   
   
   
   
   ### Expected behaviour [期望结果]
   这两种数据是否无法同时展示?麻烦给出一个确定的答复,谢谢
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       "tooltip": {
           "trigger": "item",
           "borderRadius": 0,
           "borderWidth": 0,
           "padding": 0
       },
       "visualMap": {
           "show": false,
           "top": "top",
           "min": 0,
           "max": 5,
           "seriesIndex": 0,
           "calculable": true,
           "inRange": {
               "color": [
                   "#C6C7FF",
                   "#8F90FF",
                   "#567CFF",
                   "#A9FF0E",
                   "#F3FF70",
                   "#F5A623",
                   "#EE0A00",
                   "#D0021B"
               ]
           }
       },
       "bmap": {
           "center": [
               104.114129,
               37.550339
           ],
           "zoom": 5,
           "roam": true
       },
       "series": [
           {
               "type": "scatter",
               "coordinateSystem": "bmap",
               "data": [
                   {
                       "name": "上海徐汇龙华桂平分部",
                       "value": [
                           "0",
                           "0"
                       ]
                   },
                   {
                       "name": "上海徐汇徐浦罗秀分部",
                       "value": [
                           "0",
                           "0"
                       ]
                   }
               ],
               "symbolSize": 10,
               "symbol": "circle",
               "symbolRotate": 25,
               "label": {
                   "normal": {
                       "formatter": "{b}",
                       "position": "right",
                       "show": false
                   },
                   "emphasis": {
                       "show": false
                   }
               },
               "itemStyle": {
                   "normal": {
                       "color": "#1174ff"
                   }
               }
           },
           {
               "type": "heatmap",
               "coordinateSystem": "bmap",
               "data": [
                   [
                       "121.463389",
                       "31.205461",
                       "0.21"
                   ],
                   [
                       "121.427992",
                       "31.177351",
                       "0.77"
                   ],
                   [
                       "121.451821",
                       "31.141606",
                       "0.65"
                   ],
                   [
                       "121.434706",
                       "31.137887",
                       "0.22"
                   ],
                   [
                       "121.435506",
                       "31.194590",
                       "0.31"
                   ],
                   [
                       "121.466321",
                       "31.194331",
                       "0.21"
                   ],
                   [
                       "121.464480",
                       "31.172250",
                       "0.55"
                   ],
                   [
                       "121.466953",
                       "31.204043",
                       "0.29"
                   ],
                   [
                       "121.435177",
                       "31.165248",
                       "0.88"
                   ],
                   [
                       "121.424712",
                       "31.186763",
                       "0.28"
                   ],
                   [
                       "121.462571",
                       "31.214379",
                       "0.26"
                   ],
                   [
                       "121.454027",
                       "31.210614",
                       "2.64"
                   ],
                   [
                       "121.466261",
                       "31.198389",
                       "0.21"
                   ],
                   [
                       "121.460022",
                       "31.193857",
                       "0.17"
                   ],
                   [
                       "121.455799",
                       "31.212349",
                       "0.17"
                   ],
                   [
                       "121.458669",
                       "31.196237",
                       "0.18"
                   ]
               ],
               "pointSize": 5,
               "blurSize": 6
           }
       ]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org