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/02 11:24:03 UTC

[GitHub] [incubator-echarts] stabacov opened a new issue #10786: Single value tooltip ignores dimensions.type

stabacov opened a new issue #10786: Single value tooltip ignores dimensions.type
URL: https://github.com/apache/incubator-echarts/issues/10786
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   Set one dimension to `encode.tooltip`,  and set it's type as `ordinal`.
   
   https://jsfiddle.net/kLs1dtrc/
   
   `最高气温` is shown this issue reproduced.
   Btw, `最低气温` is work as expected (because `encode.tooltip` has two dimensions).
   
   ### What is expected?
   Tooltip is shown as label value (like `11 °C`)
   
   ### What is actually happening?
   - If the label value has non-numeric characters, shown as `-`
   - If the label is numeric value, comma is added like `1,100`.
   
   ---
   Values are processed by different logic in `formatArrayValue` and `formatSingleValue`.
   https://github.com/apache/incubator-echarts/blob/4.2.1/src/model/Series.js#L360-L365
   https://github.com/apache/incubator-echarts/blob/4.2.1/src/model/Series.js#L387
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

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