Naveenkumarg24 opened a new issue #11777: Gauge Chart Decimal values remove.
URL: https://github.com/apache/incubator-echarts/issues/11777
 
 
   Hi.. I have axis decimal point issue. I am using gauge chart in echarts. I 
am set Min value 0 and Max value is 230. Gauge chart ploted in 10 Spilit 
Numbers. That numbers are showing Decimal points.
   
   
   I am shared my Code.
   
   var dom = document.getElementById("container");
   var myChart = echarts.init(dom);
   var app = {};
   option = null;
   option = {
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       series: [
           
           {
               name: '',
               type: 'gauge',
               min:1,
               max:230,
               detail: {formatter:'{value}'},
               data: [{value: 204, name: ''}]
           },
           
       ]
   };
   
   setInterval(function () {
       option.series[0].data[0].value = 204;
       myChart.setOption(option, true);
   },2000);
   ;
   if (option && typeof option === "object") {
       myChart.setOption(option, 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.
 
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