cng-meb opened a new issue, #19034:
URL: https://github.com/apache/echarts/issues/19034

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/cng_meb/6g2kLvwe/30/
   
   ### Steps to Reproduce
   
   Add a tooltip formatter and return values containing an apostrophe ’ like 
from the following output:
    `console.log(new Intl.NumberFormat('de-CH', { style: 'currency', currency: 
'CHF' }).format(1022154));`
   
   > CHF 1’022’154.00
   
   ```
   tooltip: {
        trigger: 'axis',
        axisPointer: {
                type: 'shadow'
        },
        borderRadius: 20,
        formatter: function(params) {
                /* 
                NumberFormat returns values like "CHF 1’022’154.00", but the 
                tooltip is adding nasty spaceings after every thousands 
seperator
                */
                return new Intl.NumberFormat('de-CH', { style: 'currency', 
currency: 'CHF' }).format( params[0].data ); // Assuming there is only one 
series in the chart
        }
   }
   ```
   
   
   ### Current Behavior
   
   
![grafik](https://github.com/apache/echarts/assets/77304893/34c20e1b-49b8-4331-8e1e-5f82c25bf706)
   
   
   ### Expected Behavior
   
   Display tooltip value, as returned from the formatter: `CHF 25’012’548.00`
   
   ### Environment
   
   ```markdown
   - OS: Windows 10 Pro
   - Browser: Firefox 116.0.3
   ```
   
   
   ### Any additional comments?
   
   The character making problems (generated by the NumberFormat) is:
   > U+2019
   
   My current workarround is to relace all with a similar looking one
   `return value.replaceAll("’", "´");`


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to