Prakashkhadka7 opened a new issue, #18093:
URL: https://github.com/apache/echarts/issues/18093

   ### What problem does this feature solve?
   
   option = {
     tooltip: {
       formatter: '{a} <br/>{b} : {c}%'
     },
     series: [
       {
         name: 'Pressure',
         type: 'gauge',
         // progress: {
         //   show: true
         // },
         axisLine: {
         lineStyle: {
           opacity: 0.5,
           onclick: function (event) {
             console.log(event);
           },
           color: [
             [0, '#00f'],
             [0.25, '#0ff'],
             [0.5, '#0f0'],
             [0.75, '#ff0'],
             [1, '#f00']
           ]
         }
       },
         detail: {
           valueAnimation: true,
           formatter: '{value}'
         },
         data: [
           {
             value: 50,
             name: 'SCORE'
           }
         ]
       }
     ]
   };
   
   myChart.on('click', function(params) {
    document.getElementById("test").innerHTML = params;
     console.log('Params',params);
   });
   
   The colored partition in the curved part are not clickable. 
   
![image](https://user-images.githubusercontent.com/40162506/209097938-39b36816-594f-49a5-9416-f6b7ed6992ef.png)
   
   
   
   ### What does the proposed API look like?
   
   I hope the config to be something like below:
   
   var option = {
       series: [{
         type: 'gauge',
         axisLine: {
        clickable:true,
           lineStyle: {
             color: '#000',
             opacity: 0.5,
             onclick: function (event) {
               console.log(event);
             }
           }
         },
         data: [{value: 50}]
       }]


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