You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/07/11 15:48:41 UTC

[GitHub] [incubator-echarts] mathphysar opened a new issue #10846: typescript声明文件gauge.d.ts有问题

mathphysar opened a new issue #10846: typescript声明文件gauge.d.ts有问题
URL: https://github.com/apache/incubator-echarts/issues/10846
 
 
   目前使用echarts 4.2.1  typescript声明使用 @types/echarts 4.1.9
   在@types/echarts 4.1.9(目前npm的最新版本)中options/series/gauge.d.ts文件中,detail少了formatter这申明,导致编译报错,一下是官网的实例。请尽快更新声明文件
   option = {
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       series: [
           {
               name: '业务指标',
               type: 'gauge',
               detail: {formatter:'{value}%'},
               data: [{value: 50, name: '完成率'}]
           }
       ]
   };

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org