ziyouren commented on issue #10893: series-map label 只在高亮的情况下显示 URL: https://github.com/apache/incubator-echarts/issues/10893#issuecomment-513719972 > 没能复现,你引用了map/js/world.js了吗? https://www.echartsjs.com/gallery/editor.html?c=doc-example/map-visualMap-continuous 您可以在这个示例地址把代码复制过去看下。 就是44行改下label的show 看下效果。(true的情况是都显示,false是都不显示) label:{show:true}, label:{show:false} 我想只显示china的label `option = { title : { text: 'World Population (2010)', subtext: 'from United Nations, Total population, both sexes combined, as of 1 July (thousands)', sublink : 'http://esa.un.org/wpp/Excel-Data/population.htm', left: 'center', top: 'top' }, tooltip : { trigger: 'item', formatter : function (params) { var value = (params.value + '').split('.'); value = value[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') + '.' + value[1]; return params.seriesName + '<br/>' + params.name + ' : ' + value; } }, toolbox: { show : true, orient : 'vertical', left: 'right', top: 'center', feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, restore : {show: true}, saveAsImage : {show: true} } }, visualMap: { type: 'continuous', min: 0, max: 1000000, text:['High','Low'], realtime: false, calculable : true, color: ['orangered','yellow','lightskyblue'] }, series : [ { name: 'World Population (2010)', type: 'map', mapType: 'world', label:{show:true}, emphasis:{ label:{show:true} }, roam: true, itemStyle:{ emphasis:{label:{show:true}} }, data:[ {name : 'China', value : 17150.76} ] } ] } `
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
