Naveenkumarg24 opened a new issue #11775: Gauge X-axis remove Deciamls
URL: https://github.com/apache/incubator-echarts/issues/11775
 
 
   Hi.. I am using echarts gauge in my applications. I am set Min value is 0 
and Max Value is 230. but charts allowing decimal values. How to remove decimal 
in x-axis?
   
   **_My Code are given,_**
   
   option = {
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       series: [
           {
               name: '业务指标',
               type: 'gauge',
               min:1,
               max:230,
               detail: {formatter:'{value}'},
               data: [{value: 178, name: ''}]
           }
       ]
   };
   
   setInterval(function () {
       option.series[0].data[0].value = 178;
       myChart.setOption(option, true);
   },2000);
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to