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/02/01 01:37:04 UTC

[GitHub] Luojinqian opened a new issue #9885: 使用series[i]-bar.markLine.precision配置,保留两位小数时,我遇到了一些问题

Luojinqian opened a new issue #9885: 使用series[i]-bar.markLine.precision配置,保留两位小数时,我遇到了一些问题
URL: https://github.com/apache/incubator-echarts/issues/9885
 
 
   markLine: {
                   symbol: 'none',
                   silent: true,
                   data: [
                     {yAxis: price[0]},
                     {yAxis: price[1]},
                     {yAxis: price[2]}
                   ],
                   lineStyle: {
                     show: true,
                     color: '#808C94',
                     type: 'dashed'
                   },
                   precision: 2
                   }
   -----------------------------------------------------------------------------
   当我使用上面的markLine时,比如yAxis = 25.000 则标线显示为25,yAxis = 25.10 时标线则显示25.1,显然这不是我想要保留的精度;
   -- 我理解的 precision: 2 应该是 yAxis = 25.000 标线显示 25.00, yAxis = 25.10 标线显示 yAxis = 25.10;

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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