HighCharts Advanced format lang to change the X-Axis label "G" for Giga to "B"

HighCharts Advanced format lang to change the X-Axis label "G" for Giga to "B"

  

I am doing HighChart column graph on mobile for a system dealing in currency.

WHen the figures are over 1 000 000 000, then it displays the shorthand version of the numnebr in the Y-axis suffixed with "G" instead of "B" for Billion. My client wants me to change this. How can I do this please?

I can see from the HighCharts API it is set in the following:

Highcharts.setOptions({
lang: {numericSymbols: [ 'k' , 'M' , 'B' , 'T' , 'P' , 'E'] }
});


I created a graph widget on the mobile page with a local variable assigned for the AdvancedFormat attribute which I set after the data was fetched (using AdvancedFormat_Init) to set the color and labels of the legend and some other formatting, this formatting all works fine. I tried setting this "lang: {numericSymbols: [ 'k' , 'M' , 'B' , 'T' , 'P' , 'E'] }" in this variable in the "Highcharst.JSON" field before I call AdvancedFormat_Init, but it does nothing.


Please, how can I change this?

Hi, can you share a simple oml.

I'm sure you are on the right track :)


Solution

Hi Elize,

Those options are global ones (for all charts). Thus, you have to set them up using the Highcharts.setOptions and not the AdvanceFormat parameter (which is for that particular chart).

To do what you want do this:

  • Add an handler action to the OnRender event for your screen.
  • In that action add a Javascript statement
  • In the javascript do:
Highcharts.setOptions({lang: {numericSymbols: [ 'k' , 'M' , 'B' , 'T' , 'P' , 'E']}});

See if it works for you.

Cheers,

José

Solution

José Costa wrote:

Hi Elize,

Those options are global ones (for all charts). Thus, you have to set them up using the Highcharts.setOptions and not the AdvanceFormat parameter (which is for that particular chart).

To do what you want do this:

  • Add an handler action to the OnRender event for your screen.
  • In that action add a Javascript statement
  • In the javascript do:
Highcharts.setOptions({lang: {numericSymbols: [ 'k' , 'M' , 'B' , 'T' , 'P' , 'E']}});

See if it works for you.

Cheers,

José

Hi José,


Thank you, that makes absolute sense. Why did I not think of that? :) 

I even today added Javascript to replace in the innerHTML of the YaxisLabels 'G' with 'B' in OnRender, which works, but I would prefer to be able to rather setOptions, which is the correct way. I am going to try this tomorrow, will let you know.


Hi Elize,

Glad to help.

Cheers,

José


We are a unique manufacturer of high-quality registered citizenship documents with the best machines and holograms that duplicate as database database driver's license, passports, biometric passports, residence permit, social security number SSN, birth and marriage certificates, stamps, school diplomas, IELTS and TOEFL, ESOL, Visa, Business , Students and tourists and other products for a number of countries such as USA, Canada, Germany, Sweden, Norway, Denmark, Austria, Spain, Czech Republic, Portugal, Lithuania, Russia, Hungary, Portugal, Spain, Australia, Cambodia, Croatia, African Countries, Japan, China and so on. We also provide a service to help you cross your goals, we help you to get real government issued ID, check and secure the accounts for your new ID, credit card, coach services

* Contact: ====== documentonline22@gmail.com

*Whatsapp ===== +971552571205

*Skype ===========kavinjoss



We can produce the following items;

REAL UK PASSPORT.
REAL CANADIAN PASSPORT.
REAL FRENCH PASSPORT.
REAL AMERICAN PASSPORT.
REAL RUSSIAN PASSPORT.
REAL JAPANESSE PASSPORT.
REAL CHINESE PASSPORT.
REAL AUSTRALIAN PASSPORT
REAL GERMAN PASSPORT

AND REAL PASSPORT FOR COUNTRIES IN THE EUROPEAN UNION.
REAL DRIVER LICENSE, ID CARDS, BIRTH CERTIFICATES, DIPLOMATES, MARRIGE
CERTIFICATES AND VISAS.

REGISTERED AND UNREGISTERED BRITISH PASSPORT.
REGISTERED AND UNCLASSIFIED CANNIC PASSPORT.
REGISTERED AND UNREGISTERED FRENCH PASSPORT.
REGISTERED AND UNREGISTERED AMERICAN PASSPORT.
REGISTERED AND UNREGISTERED RUSSIAN PASSPORT.
REGISTERED AND UNREGISTERED JAPANESSE PASSPORT.
REGISTERED AND UNREGISTERED CHINESSE PASSPORT.
REGISTERED AND UNREGISTERED PASSPORT PASSPORT FOR COUNTRIES IN THE EUROPEAN
UNION.

Buy registered and unregistered French (France) passports,
Buy registered and unregistered German (Germany) passports,
Buy registered and unregistered Dutch (Holland / Netherlands) passports,
Buy registered and unregistered Israel passports,
Buy registered and unregistered UK (United Kingdom) Passports,
Buy registered and unregistered Spanish (Spain) passports,
Buy registered and unregistered Mexican (Mexico) passports,
Buy registered and unregistered South African passports.
Buy registered and unregistered Australian driving licenses,
Buy registered and unregistered Canadian driving licenses,
Buy registered and unregistered French (France) driver licenses,
Buy Registered and unregistered Dutch (Netherlands / Holland) Driving licenses,
Buy Registered and unregistered German (Germany) driving licenses,
Buy Registered and unregistered UK (United Kingdom) Drivers licenses,
Buy registered and unregistered diplomatic passports,
Registered and unregistered passports,
Registered and unregistered pass duplicates,
Registered and unregistered US (United States) Passports for sale,
Registered and unregistered Australian passports for sale,
Registered and unregistered Belgian passports for sale,
Registered and unregistered Brazilian (Brazil) passports for sale,

We offer high quality counterfeits for the following currencies.
EUR - Euro
USD - US Dollar
GBP - British Pound
INR - Indian Rupee
AUD - Australian Dollar
CAD - Canadian Dollar
AED - Emirati Dirham
ZAR border
CHF - Swiss franc
CNY - Chinese Yuan Renminbi
MYR - Malaysian Ringgit
THB - Thai Baht

My contacts are private detectives, immigration authorities, consuls, diplomats, personal officials and experienced experts, I have a strong commitment to the growth of the staff in all areas of ID, passport and other documents. All customers who need the national citizenship document from all countries are 100% insured and guarantee a real database registered documents with high quality. Do not hesitate to inform us about our services. We sincerely hope to find a way to cooperate with you. Our team has years of experience in various agencies original and fake documents produced by our insiders.

We have a LEGITIME service:
We offer you a service that will help you achieve your goals, we can help you:
• First real government issued ID card,
• A new social security number SSN (comprehensible with the SSA)
• Review and save accounts for the new personnel ID,
• Credit cards
• Move
• Biometric passports
• Construction and maintenance of waste paper,
• Coaching services

*Contact E-mail ................documentonline22@gmail.com

*whatsapps----------------------- +971552571205


we are the best