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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to