You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/01/29 03:19:49 UTC

[GitHub] [echarts] Katrina-yue opened a new issue #14151: The map3D-emphasis attribute doesn't work. And how to get the item-name when you clicked the item in the map3D echarts?

Katrina-yue opened a new issue #14151:
URL: https://github.com/apache/echarts/issues/14151


   ### Version
   5.0.0
   
   ### Steps to reproduce
    myChart.setOption({
           title: {
             textStyle: {
               color: "#fff",
               fontWeight: "bolder",
               fontSize: 28,
               width: "100%",
             },
             textAlign: "left",
           },
           tooltip: {
             trigger: "item", 
           },
           toolbox: {
             show: true,
             orient: "vertical",
             left: "right",
             top: "center",
             feature: {
               dataView: { readOnly: false },
               restore: {},
               saveAsImage: {},
             },
           },
           visualMap: {
             show: false,
             min: 0,
             max: 21,
             text: ["High", "Low"],
             realtime: false,
             calculable: true,
             inRange: {
               color: ["#e7f0fd", "#6f86d6"],
             },
           },
           series: [
             {
               type: "map3D",
               map: 'world,
               label: {
                 show: true,
                 textStyle: {
                   fontSize: 14,
                   color: "#333",
                 },
               },
               emphasis: {
                 label: {
                   show: false,
                 },
                 itemStyle: {
                   opacity: 1,
                   color: "orange",
                 },
               },
               shading: "lambert",
               viewControl: {
                 alpha: 60,
                 beta: 10,
                 distance: 80,
               },
               top: -10,
               bottom: 10,
               data: [ ],
               barSize: 0.1,
               minHeight: 0.2,
               silent: true,
               itemStyle: {
                 borderWidth: 1,
                 borderColor: "#333",
                 opacity: 0.9,
               },
             },
           ],
         });
         myChart.getZr().on("click", (params) => {
           console.log( params);
         });
   
   ### What is expected?
   使用map3D,在series中设置了emphasis但并不起作用。tooltip组件也并没有触发,没有显示提示。点击事件也没有监听到。查找资料使用getZr(),但是获取不到点击的是哪一个item.
   When I set series-type-map3D , I found that the emphasis attribute doesn't work.And the tooltip component doesn't work too.I used getZr().onClick function to setting but it cannot get the clicked item-name.
   
   ### What is actually happening?
   使用map3D,在series中设置了emphasis但并不起作用。tooltip组件也并没有触发,没有显示提示。点击事件也没有监听到。查找资料使用getZr(),但是获取不到点击的是哪一个item.
   When I set series-type-map3D , I found that the emphasis attribute doesn't work.And the tooltip component doesn't work too.I used getZr().onClick function to setting but it cannot get the clicked item-name.
   
   ---
   使用map3D,在series中设置了emphasis但并不起作用。tooltip组件也并没有触发,没有显示提示。点击事件也没有监听到。查找资料使用getZr(),但是获取不到点击的是哪一个item.
   When I set series-type-map3D , I found that the emphasis attribute doesn't work.And the tooltip component doesn't work too.I used getZr().onClick function to setting but it cannot get the clicked item-name.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14151: The map3D-emphasis attribute doesn't work. And how to get the item-name when you clicked the item in the map3D echarts?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14151:
URL: https://github.com/apache/echarts/issues/14151#issuecomment-769547063


   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 **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) 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](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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