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/04/21 09:03:35 UTC

[GitHub] [echarts] ItsMisa opened a new issue #14734: https://ecomfe.github.io/echarts-issue-helper/

ItsMisa opened a new issue #14734:
URL: https://github.com/apache/echarts/issues/14734


   ### Version
   5.0.1
   
   ### Steps to reproduce
   echart map 当鼠标悬浮在某个国家区域的label文字上面的时候,visualMap那里没有个数的提示,悬浮在除了lable文字的其他区域,visualMap有提示。
   
   ### What is expected?
   期望悬浮在区域label文字上面的时候,visualMap那里有绑定的个数的提示
   
   ### What is actually happening?
   悬浮在区域label文字上面的时候,visualMap那里没有绑定的个数的提示
   
   <!-- 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] pissang commented on issue #14734: https://ecomfe.github.io/echarts-issue-helper/

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14734:
URL: https://github.com/apache/echarts/issues/14734#issuecomment-824529936


   @ItsMisa 标题改下?


-- 
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] ItsMisa commented on issue #14734: https://ecomfe.github.io/echarts-issue-helper/

Posted by GitBox <gi...@apache.org>.
ItsMisa commented on issue #14734:
URL: https://github.com/apache/echarts/issues/14734#issuecomment-824457641


   import * as echarts from "echarts";
   import nameMap from "./nameMap";
   import mapJSON from "./map.json";
   const chart = echarts.init(document.getElementById("app"));
   
   const data = [
     { name: "中国", value: [10000, 10000, 50000] },
     { name: "美国", value: [10000, 10000, 50000] }
   ];
   echarts.registerMap("world", mapJSON);
   chart.setOption({
     backgroundColor: "#404a59",
     title: {
       text: "地区分布",
       textStyle: {
         color: "#ffffff"
       }
     },
     visualMap: {
       min: 0,
       max: 50000,
       left: "left",
       top: "bottom",
       text: ["高", "低"],
       dimension: 2,
       textStyle: {
         color: "#ddd"
       },
       inRange: {
         color: ["lightskyblue", "yellow", "orangered", "red"]
       },
       calculable: false
     },
     series: [
       {
         name: "全球地区客户分布",
         type: "map",
         id: "map",
         map: "world", // 自定义扩展图表类型
         roam: true,
         nameMap,
         data: data,
         label: {
           show: true,
           fontWeight: 500,
           fontSize: 16,
           formatter: function (params) {
             if (params.data) {
               return params.data.name;
             }
             return "";
           }
         },
         emphasis: {
           label: {
             show: true,
             formatter: (params) => {
               return params.name;
             }
           }
         }
         // itemStyle: {
         // },
       }
     ]
   });
   


-- 
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] ItsMisa commented on issue #14734: https://ecomfe.github.io/echarts-issue-helper/

Posted by GitBox <gi...@apache.org>.
ItsMisa commented on issue #14734:
URL: https://github.com/apache/echarts/issues/14734#issuecomment-824457802


   可以见 https://codesandbox.io/s/wonderful-torvalds-26jn3 这个demo


-- 
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 #14734: https://ecomfe.github.io/echarts-issue-helper/

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






-- 
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 #14734: https://ecomfe.github.io/echarts-issue-helper/

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


   @ItsMisa Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.


-- 
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] ItsMisa commented on issue #14734: echart map 当鼠标悬浮在某个国家区域的label文字上面的时候,visualMap那里没有个数的提示

Posted by GitBox <gi...@apache.org>.
ItsMisa commented on issue #14734:
URL: https://github.com/apache/echarts/issues/14734#issuecomment-824540273


   > @ItsMisa 标题改下?
   
   已改


-- 
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] ItsMisa edited a comment on issue #14734: https://ecomfe.github.io/echarts-issue-helper/

Posted by GitBox <gi...@apache.org>.
ItsMisa edited a comment on issue #14734:
URL: https://github.com/apache/echarts/issues/14734#issuecomment-824457641


   ```ts
   import * as echarts from "echarts";
   import nameMap from "./nameMap";
   import mapJSON from "./map.json";
   const chart = echarts.init(document.getElementById("app"));
   
   const data = [
     { name: "中国", value: [10000, 10000, 50000] },
     { name: "美国", value: [10000, 10000, 50000] }
   ];
   echarts.registerMap("world", mapJSON);
   chart.setOption({
     backgroundColor: "#404a59",
     title: {
       text: "地区分布",
       textStyle: {
         color: "#ffffff"
       }
     },
     visualMap: {
       min: 0,
       max: 50000,
       left: "left",
       top: "bottom",
       text: ["高", "低"],
       dimension: 2,
       textStyle: {
         color: "#ddd"
       },
       inRange: {
         color: ["lightskyblue", "yellow", "orangered", "red"]
       },
       calculable: false
     },
     series: [
       {
         name: "全球地区客户分布",
         type: "map",
         id: "map",
         map: "world", // 自定义扩展图表类型
         roam: true,
         nameMap,
         data: data,
         label: {
           show: true,
           fontWeight: 500,
           fontSize: 16,
           formatter: function (params) {
             if (params.data) {
               return params.data.name;
             }
             return "";
           }
         },
         emphasis: {
           label: {
             show: true,
             formatter: (params) => {
               return params.name;
             }
           }
         }
         // itemStyle: {
         // },
       }
     ]
   });
   ```


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