FlyoverBlind commented on issue #19903:
URL: https://github.com/apache/echarts/issues/19903#issuecomment-2099592473

   > Did you forget to set also 
[selectedMode](https://echarts.apache.org/en/option.html#geo.selectedMode) ?
   
   this is my code `myChart.showLoading();
   $.get(ROOT_PATH + '/data/asset/geo/HK.json', function (geoJson) {
     myChart.hideLoading();
     echarts.registerMap('HK', geoJson);
     myChart.setOption(
       (option = {
         title: {
           text: 'Population Density of Hong Kong (2011)',
           subtext: 'Data from Wikipedia',
           sublink:
             
'http://zh.wikipedia.org/wiki/%E9%A6%99%E6%B8%AF%E8%A1%8C%E6%94%BF%E5%8D%80%E5%8A%83#cite_note-12'
         },
         tooltip: {
           trigger: 'item',
           formatter: '{b}<br/>{c} (p / km2)'
         },
         toolbox: {
           show: true,
           orient: 'vertical',
           left: 'right',
           top: 'center',
           feature: {
             dataView: { readOnly: false },
             restore: {},
             saveAsImage: {}
           }
         },
         visualMap: {
           min: 800,
           max: 50000,
           text: ['High', 'Low'],
           realtime: false,
           calculable: true,
           inRange: {
             color: ['lightskyblue', 'yellow', 'orangered']
           }
         },
         geo: {
           map: 'HK',
           selectedMode: 'multiple',
           label: {
             show: true
           },
           emphasis: {
             disabled: true
           },
           select: {
             disabled: true
           },
           
         },
   
       })
     );
   });
   `
   
   


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

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to