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/30 10:16:56 UTC

[GitHub] jasonlee529 opened a new issue #8781: phantomjs如何加载symbol为image的markpoint呢?

jasonlee529 opened a new issue #8781: phantomjs如何加载symbol为image的markpoint呢?
URL: https://github.com/apache/incubator-echarts/issues/8781
 
 
   
   ### One-line summary [问题简述]
   做服务端生成图片的工作,发现一个问题,当markpoint.symbol为image://时无法加载,请问是什么原因?是由于phantomjs的无法加载路径下的文件吗?
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:2.2.7
   + Browser version [浏览器类型和版本]: phantomjs 2.1.1
   + OS Version [操作系统类型和版本]: ubunu 16.04
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       "title": {
           "text": "",
               "subtext": "",
                   "x": "center",
                       "y": "top"
       },
       "roamController":
       { "show": false }, "tooltip": { "show": false },
       "dataRange": {
           "show": false, "min": 0, "max": 100, "x": "center", "y": "center", "tdext": ["High", "Low"],
               "calculable": true, "itemHeight": 30, "color": ["#ff3333", "orange", "#bfe583"]
       }, "series":
       [{
           "name": "分析图", "type": "map", "mapType": "bodyMale", "mapLocation": { "x": "left" }, "roam": false,
           "hoverable": false, "itemStyle": {
               "normal": { "label": { "show": true } },
               "emphasis": { "label": { "show": true } }
           }, "data": [{ "name": "头部", "value": "0" },
           { "name": "颈部", "value": 100 }, { "name": "胸部", "value": "0" }, { "name": "腹部", "value": 100 },
           { "name": "生殖", "value": "0" }, { "name": "上肢", "value": "0" }, { "name": "下肢", "value": "0" }],
           "textFixed": { "上肢": [-60, 0] }, "markPoint": {
               "data": [{
                   "name": "肝脏", "value": "", "geoCoord": [17, 180], "symbol": "image://./organ/liver.png", "symbolSize": 40
               }
              ]
           }
       }]
   }
   
   ```
   
   
   
   
   ### 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