You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/22 14:29:30 UTC

[GitHub] [echarts] MateuszRomek opened a new issue #14516: locale separators not applied [help wanted]

MateuszRomek opened a new issue #14516:
URL: https://github.com/apache/echarts/issues/14516


   ### Version
   5.0.2
   
   ### Reproduction link
   [https://jsfiddle.net/d63vbuzf/4/](https://jsfiddle.net/d63vbuzf/4/)
   
   ### Steps to reproduce
   1. register FR locale (as shown in jsFiddle)
   2. Initialize chart wich .init function and set locale option to "FR"
   
   ### What is expected?
   After adding the FR locale, the values in the tooltip and on yAxis should be separated by spaces.
   
   ### What is actually happening?
   The values are still separated by a comma.
   
   ---
   
   I would like to know if it is possible to use the registerLocale function to set the correct decimal and thousand separators in echarts?
   
   In jsFiddle demo, my goal is to use the FR locale (this is an example country). 
   I provided the registerLocale function with the object in the same format as in the documentation: 
    https://github.com/apache/echarts/blob/release/src/i18n/langEN.ts  but the values in the chart (tooltip and yAxis) are still separated by a comma, and in this case I would like it to be separated by a space.
   
   Do I still have to use formatter to adjust locale separators? 
   
   E.g. 
   ```
   axisLabel: {
   
    formatter: function(value, index) {}
   
   }
   ```
   
   <!-- 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



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


[GitHub] [echarts] MateuszRomek commented on issue #14516: locale separators not applied [help wanted]

Posted by GitBox <gi...@apache.org>.
MateuszRomek commented on issue #14516:
URL: https://github.com/apache/echarts/issues/14516#issuecomment-804118394


   So for the values on yAxis and xAxis I also have to use a formatter?


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



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


[GitHub] [echarts] susiwen8 commented on issue #14516: locale separators not applied [help wanted]

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #14516:
URL: https://github.com/apache/echarts/issues/14516#issuecomment-804116825


   Well, i18n doesn't affect tooltip format, if you want to format tooltip, you can use `tooltip.formatter`


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



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


[GitHub] [echarts] susiwen8 closed issue #14516: locale separators not applied [help wanted]

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #14516:
URL: https://github.com/apache/echarts/issues/14516


   


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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14516: locale separators not applied [help wanted]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14516:
URL: https://github.com/apache/echarts/issues/14516#issuecomment-804107353


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



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


[GitHub] [echarts] susiwen8 commented on issue #14516: locale separators not applied [help wanted]

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #14516:
URL: https://github.com/apache/echarts/issues/14516#issuecomment-804119740


   > So for the values on yAxis and xAxis I also have to use a formatter?
   
   Yes, that's right


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



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