Greetings,

Is there a way to represent numbers in local value without using formatter? If there is global setting that would work on all numbers. For example like using toLocaleString javascipt method that transforms values to local format. Numbers are currently in format 1,000.00 for Slovenia format is 1.000,00 with  point and comma switched. Is there any way to set this globally instead of using formatter on every single instance?

Document
Lep pozdrav,


        


     TadejLozar

Programer

GOinfo d. o. o. Nova Gorica

        
        
        
        

        +386 5 777 57 35 <tel:+386 5 777 57 35>

        [email protected] <mailto:[email protected]>

        www.goinfo.si <//www.goinfo.si>

        Prvomajska 37, SI-5000 Nova Gorica



Tadej Lozar je 19.11.2021 ob 08:08 napisal:
Hi,

This works as intended for names of graphs and months.
Is there any way to globally set value separator for numbers. For example numbers are currently 1,000.00 In our country we write them 1.000,00 so the point and comma are swithced. Is there any global settings for this workaround.

Document
Best regards,


        


      TadejLozar

Programer

GOinfo d. o. o. Nova Gorica

        
        
        
        

        +386 5 777 57 35 <tel:+386 5 777 57 35>

        [email protected] <mailto:[email protected]>

        www.goinfo.si <//www.goinfo.si>

        Prvomajska 37, SI-5000 Nova Gorica



Yi Shen je 18.11.2021 ob 13:50 napisal:
Hi,

I created an example on codesandbox https://codesandbox.io/s/relaxed-currying-tuq81?file=/src/index.js

Regards

On Thu, Nov 18, 2021 at 3:49 PM Tadej Lozar <[email protected]> wrote:

    Greetings,

    Can you send me working example with this CDN, based on this CDN?
    As I include this CDN and then use locale:SI it still uses
    english locale for number.

    Best regards,


        


          TadejLozar

    Programer

    GOinfo d. o. o. Nova Gorica

        
        
        
        

        +386 5 777 57 35 <tel:+386%205%20777%2057%2035>

        [email protected] <mailto:[email protected]>

        www.goinfo.si <//www.goinfo.si>

        Prvomajska 37, SI-5000 Nova Gorica



    Yi Shen je 18.11.2021 ob 04:32 napisal:
    Hi

    You should use
    https://cdnjs.cloudflare.com/ajax/libs/echarts/5.2.2/i18n/langSI.min.js
    which can be registered automatically if you are using CDN.

    Regards



    On Wed, Nov 17, 2021 at 1:59 AM Tadej Lozar <[email protected]> wrote:

        Dear E-charts team,

        I am trying to configure language of charts to Slovenian (SI
        locale).
        I am working with CDN:
        https://cdnjs.cloudflare.com/ajax/libs/echarts/5.2.2/echarts.min.js
        
https://cdnjs.cloudflare.com/ajax/libs/echarts/5.2.2/i18n/langSI-obj.min.js
        I coulnd't reference object from langSI. I continually got
        error. Then i pasted object as it is defined in
        langSI-obj.min.js
        Still the changes are not shown in SI language and values in
        graph.

        In attachment is code example to recreate sample.

        I spent hours trying to figure out what could be the
        possible issue, but can't find a way to registerLocale to SI.
        Can you help me with working example.
-- Thanks in advance and best regards


                


              TadejLozar

        Programer

        GOinfo d. o. o. Nova Gorica

                
                
                
                

                +386 5 777 57 35 <tel:+386%205%20777%2057%2035>

                [email protected] <mailto:[email protected]>

                www.goinfo.si <//www.goinfo.si>

                Prvomajska 37, SI-5000 Nova Gorica




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



-- Yi Shen
    Apache ECharts PMC



--
Yi Shen
Apache ECharts PMC

Reply via email to