Skip to content

Commit 3879675

Browse files
committed
Add JS loops chart builder examples
1 parent 327ba4e commit 3879675

7 files changed

Lines changed: 572 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"aus": "Australia", "bgd": "Bangladesh", "bra": "Brazil", "can": "Canada", "chn": "China", "cod": "DR Congo", "deu": "Germany", "egy": "Egypt", "eth": "Ethiopia", "fra": "France", "gbr": "Great Britain", "idn": "Indonesia", "ind": "India", "irn": "Iran", "ita": "Italy", "jpn": "Japan", "mex": "Mexico", "nga": "Nigeria", "pak": "Pakistan", "phl": "Philippines", "rus": "Russia", "tha": "Thailand", "tur": "Turkiye", "ukr": "Ukraine", "usa": "USA", "vnm": "Vietnam"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"aus": {"codes": ["rGWh", "eGWh", "empd", "inac", "infl", "prod"], "names": ["Renewables", "Electricity", "Employed", "Inactivity", "Inflation", "Productivity"]}, "bgd": {"codes": ["displ", "infl", "grow", "gdpa", "gdpp", "unem", "empl", "expo", "impo", "popu"], "names": ["Displacement", "Inflation", "GDP growth", "GDP", "GDP per capita", "Unemployment", "Employment to population ratio", "Exports", "Imports", "Population"]}, "bra": {"codes": ["nGwh", "rGWh", "eGWh", "displ", "infl", "gfcf", "impo", "expo", "gdpa", "gdpp", "grow", "popu", "unem"], "names": ["Nuclear Power", "Renewables", "Electricity", "Displacement", "Inflation", "Investment", "Imports", "Exports", "GDP", "GDP per capita", "GDP growth", "Population", "Unemployment"]}, "can": {"codes": ["nGwh", "rGWh", "eGWh", "empd", "empl", "ineq", "infl", "popu", "prod", "unem", "wage", "by10", "debt"], "names": ["Nuclear Power", "Renewables", "Electricity", "Employed", "Employment rate", "Inequality", "Inflation", "Population", "Productivity", "Unemployment rate", "Weekly wage", "10-year bond yield", "Debt"]}, "chn": {"codes": ["nGwh", "rGWh", "eGWh", "coal", "infl", "esta", "grow", "popu", "wage", "unem", "empl", "cons", "gdpp", "ineq", "cnst", "rail"], "names": ["Nuclear Power", "Renewables", "Electricity", "Coal Consumption", "Inflation", "Real Estate Investment", "GDP growth", "Population", "Average wage", "Unemployment Rate", "Employment", "Household Consumption", "GDP per capita", "Inequality", "Construction", "Rail Track"]}, "cod": {"codes": ["displ", "infl", "debt", "grow", "gdpa", "gdpp", "unem", "empl", "expo", "impo", "popu"], "names": ["Displacement", "Inflation", "Debt", "GDP growth", "GDP", "GDP per capita", "Unemployment", "Employment to population ratio", "Exports", "Imports", "Population"]}, "deu": {"codes": ["nGwh", "rGWh", "eGWh", "expo", "gdp", "impo", "infl", "part", "popu", "unem", "debt"], "names": ["Nuclear Power", "Renewables", "Electricity", "Exports", "GDP", "Imports", "Inflation", "Labour participation rate", "Population", "Unemployment", "Debt"]}, "egy": {"codes": ["rGWh", "eGWh", "displ", "empl", "expo", "gdpa", "gdpp", "grow", "impo", "infl", "popu", "unem"], "names": ["Renewables", "Electricity", "Displacement", "Employment to population ratio", "Exports", "GDP", "GDP per capita", "GDP growth", "Imports", "Inflation", "Population", "Unemployment"]}, "eth": {"codes": ["displ", "debt", "empl", "expo", "gdpa", "gdpp", "grow", "impo", "infl", "popu", "unem"], "names": ["Displacement", "Debt", "Employment to population ratio", "Exports", "GDP", "GDP per capita", "GDP growth", "Imports", "Inflation", "Population", "Unemployment"]}, "fra": {"codes": ["nGwh", "rGWh", "eGWh", "debt", "fert", "grow", "house", "infl", "popu", "undr", "unem", "wage"], "names": ["Nuclear Power", "Renewables", "Electricity", "Debt", "Fertility", "GDP growth", "Housing Stock", "Inflation", "Population", "Underemployment", "Unemployment", "Wage growth"]}, "gbr": {"codes": ["gold", "vacn", "wage_r", "gdp_r", "cpi", "ginv_r", "gcon_r", "npcon_r", "binv_r", "hours", "hcon_r", "impo_r", "expo_r", "nGwh", "rGWh", "eGWh", "nvq4", "pisa", "rand", "binv", "ginv", "irat", "lend", "mort", "brate", "intr", "debt", "empd", "empl", "expo", "grow", "impo", "inac", "infl", "prod", "unem", "wage", "redn"], "names": ["Gold Price", "Job Vacancies", "Real Weekly Wage", "Real GDP", "Consumer Price Index", "Real Government Investment", "Real Government Consumption", "Real Non-Profit Consumption", "Real Business Investment", "Hours Worked", "Real Household Consumption", "Real Imports", "Real Exports", "Nuclear Power", "Renewables", "Electricity Output", "Graduates", "Maths PISA", "R&D", "Business Investment", "Government Investment", "Investment", "Lending Growth", "Mortgage Rates", "Bank Rate", "10 Year Gilt", "Debt", "Employed", "Employment rate", "Exports", "GDP Growth", "Imports", "Inactivity", "Inflation", "Productivity", "Unemployment rate", "Weekly Wage", "Redundancy Rate"]}, "idn": {"codes": ["rGWh", "eGWh", "displ", "wage", "empd", "empl", "expo", "grow", "impo", "inac", "ineq", "infl", "popu", "prod", "unem"], "names": ["Renewables", "Electricity", "Displacement", "Average wage", "Employed", "Employment", "Exports", "GDP growth", "Imports", "Inactivity", "Inequality", "Inflation", "Population", "Productivity", "Unemployment"]}, "ind": {"codes": ["nGwh", "rGWh", "eGWh", "displ", "indx", "tele", "debt", "grow", "gdpa", "gdpp", "unem", "empl", "expo", "impo", "popu", "infl"], "names": ["Nuclear Power", "Renewables", "Electricity", "Displacement", "Price Index", "Phone Subscribers", "Debt", "GDP growth", "GDP", "GDP per capita", "Unemployment", "Employment to population ratio", "Exports", "Imports", "Population", "Inflation"]}, "irn": {"codes": ["capit", "expo", "impo", "ineq", "infl", "petro"], "names": ["Capital Formation", "Exports", "Imports", "Inequality", "Inflation", "Petrochemical industry output"]}, "ita": {"codes": ["infl", "wine", "jobv", "elec", "house", "fert", "popu", "conf", "incm", "prod", "gdpp", "gfcf", "cons", "gdpa", "grow"], "names": ["Inflation", "Wine Consumption", "Vacancy Rate", "Energy Consumption", "House Prices", "Fertility Rate", "Population", "Consumer Confidence", "Income", "Productivity", "GDP per Capita", "Investment", "Consumer Spending", "GDP", "GDP Growth"]}, "jpn": {"codes": ["nGwh", "rGWh", "eGWh", "infl", "debt", "grow", "gdpa", "gdpp", "unem", "empl", "expo", "impo", "popu"], "names": ["Nuclear Power", "Renewables", "Electricity", "Inflation", "Debt", "GDP growth", "GDP", "GDP per capita", "Unemployment", "Employment to population ratio", "Exports", "Imports", "Population"]}, "mex": {"codes": ["nGwh", "rGWh", "eGWh", "displ", "part", "popu", "prod", "unem", "conf", "infl", "inter"], "names": ["Nuclear Power", "Renewables", "Electricity", "Displacement", "Labour participation rate", "Population", "Productivity index", "Unemployment", "Consumer confidence", "Price index", "Interest rate"]}, "nga": {"codes": ["displ", "empl", "expo", "gdpa", "gdpp", "impo", "infl", "popu", "unem"], "names": ["Displacement", "Employment to population ratio", "Exports", "GDP", "GDP per capita", "Imports", "Inflation", "Population", "Unemployment"]}, "pak": {"codes": ["displ", "popu", "unem", "debt", "empl", "expo", "gdpa", "gdpp", "grow", "impo", "infl"], "names": ["Displacement", "Population", "Unemployment", "Debt", "Employment to population ratio", "Exports", "GDP", "GDP per capita", "GDP growth", "Imports", "Inflation"]}, "phl": {"codes": ["displ", "hexp", "tour", "finv", "dgva", "gni", "union", "lshr", "povt", "gfcf", "cons", "gdpa", "debt", "expo", "grow", "impo", "inac", "infl", "popu", "prod", "unem"], "names": ["Displacement", "Inbound Tourism Expenditure", "Inbound Tourism Expenditure", "Foreign Investment", "Digital Economy", "GNI", "Union Density", "Labour Share", "Extreme Poverty", "Investment", "Household Consumption", "Unemployment", "Debt", "Exports", "GDP growth", "Imports", "Labour participation rate", "Inflation", "Population", "Productivity", "Unemployment"]}, "rus": {"codes": ["displ", "infl", "grow", "unem", "empd", "umpd", "expo", "impo"], "names": ["Displacement", "Inflation", "Growth", "Unemployment Rate", "Employed", "Unemployed", "Exports", "Imports"]}, "tha": {"codes": ["rGWh", "eGWh", "displ", "expo", "gdpa", "gdpp", "grow", "impo", "infl", "popu", "unem", "debt", "empl"], "names": ["Renewables", "Electricity", "Displacement", "Exports", "GDP", "GDP per capita", "GDP growth", "Imports", "Inflation", "Population", "Unemployment", "Debt", "Employment to population ratio"]}, "tur": {"codes": ["rGWh", "eGWh", "displ", "empd", "empl", "expo", "grow", "impo", "inac", "ineq", "infl", "popu", "unem"], "names": ["Renewables", "Electricity", "Displacement", "Employed", "Employment", "Exports", "GDP growth", "Imports", "Inactivity", "Inequality", "Inflation", "Population", "Unemployment"]}, "ukr": {"codes": ["gimpo", "gdpp", "gdpa", "grow", "unem", "popu", "infl", "impo", "expo", "empl", "refu", "displ", "debt"], "names": ["Grain Imports", "GDP per capita", "GDP", "GDP growth", "Unemployment", "Population", "Inflation", "Imports", "Exports", "Employment", "Refugees", "Displacement", "Debt"]}, "usa": {"codes": ["nGwh", "rGWh", "eGWh", "empl", "popu", "unem", "prod", "wage", "ineq", "gdp", "debt", "expo", "grow", "infl", "gdpp", "impo", "inac", "part", "empd"], "names": ["Nuclear Power", "Renewables", "Electricity", "Employment Rate", "Population", "Unemployment", "Productivity", "Weekly wage", "Inequality", "GDP", "Debt", "Exports", "GDP Growth", "Inflation", "GDP per capita", "Imports", "Inactivity", "Participation Rate", "Employed"]}, "vnm": {"codes": ["elec", "fdip", "mobi", "gfcf", "gdpp", "gdpa", "infl", "expo", "impo", "popu", "infl", "grow", "gdpp", "unem", "empl"], "names": ["Electricity Production", "Foreign Direct Investment", "Mobile Phone Subscriptions", "Gross Fixed Capital Formation", "GDP Per Capita", "GDP", "Inflation", "Exports", "Imports", "Population", "Inflation", "GDP growth", "GDP per capita", "Unemployment", "Employment to population ratio"]}}

examples/loops/dataHub_series.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"rGWh": "Renewables", "eGWh": "Electricity", "empd": "Employed", "inac": "Inactivity", "infl": "Inflation", "prod": "Productivity", "displ": "Displacement", "grow": "GDP growth", "gdpa": "GDP", "gdpp": "GDP per capita", "unem": "Unemployment", "empl": "Employment to population ratio", "expo": "Exports", "impo": "Imports", "popu": "Population", "nGwh": "Nuclear Power", "gfcf": "Investment", "ineq": "Inequality", "wage": "Weekly wage", "by10": "10-year bond yield", "debt": "Debt", "coal": "Coal Consumption", "esta": "Real Estate Investment", "cons": "Household Consumption", "cnst": "Construction", "rail": "Rail Track", "gdp": "GDP", "part": "Labour participation rate", "fert": "Fertility", "house": "Housing Stock", "undr": "Underemployment", "gold": "Gold Price", "vacn": "Job Vacancies", "wage_r": "Real Weekly Wage", "gdp_r": "Real GDP", "cpi": "Consumer Price Index", "ginv_r": "Real Government Investment", "gcon_r": "Real Government Consumption", "npcon_r": "Real Non-Profit Consumption", "binv_r": "Real Business Investment", "hours": "Hours Worked", "hcon_r": "Real Household Consumption", "impo_r": "Real Imports", "expo_r": "Real Exports", "nvq4": "Graduates", "pisa": "Maths PISA", "rand": "R&D", "binv": "Business Investment", "ginv": "Government Investment", "irat": "Investment", "lend": "Lending Growth", "mort": "Mortgage Rates", "brate": "Bank Rate", "intr": "10 Year Gilt", "redn": "Redundancy Rate", "indx": "Price Index", "tele": "Phone Subscribers", "capit": "Capital Formation", "petro": "Petrochemical industry output", "wine": "Wine Consumption", "jobv": "Vacancy Rate", "elec": "Energy Consumption", "conf": "Consumer Confidence", "incm": "Income", "inter": "Interest rate", "hexp": "Inbound Tourism Expenditure", "tour": "Inbound Tourism Expenditure", "finv": "Foreign Investment", "dgva": "Digital Economy", "gni": "GNI", "union": "Union Density", "lshr": "Labour Share", "povt": "Extreme Poverty", "umpd": "Unemployed", "gimpo": "Grain Imports", "refu": "Refugees", "fdip": "Foreign Direct Investment", "mobi": "Mobile Phone Subscriptions"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"rGWh": ["aus", "bra", "can", "chn", "deu", "egy", "fra", "gbr", "idn", "ind", "jpn", "mex", "tha", "tur", "usa"], "eGWh": ["aus", "bra", "can", "chn", "deu", "egy", "fra", "gbr", "idn", "ind", "jpn", "mex", "tha", "tur", "usa"], "empd": ["aus", "can", "gbr", "idn", "rus", "tur", "usa"], "inac": ["aus", "gbr", "idn", "phl", "tur", "usa"], "infl": ["ukr", "eth", "fra", "vnm", "ind", "nga", "egy", "phl", "mex", "cod", "bra", "can", "irn", "chn", "rus", "jpn", "idn", "bgd", "deu", "pak", "tur", "usa", "ita", "aus", "tha", "gbr"], "prod": ["aus", "can", "gbr", "idn", "ita", "mex", "phl", "usa"], "displ": ["bgd", "bra", "cod", "egy", "eth", "idn", "ind", "mex", "nga", "pak", "phl", "rus", "tha", "tur", "ukr"], "grow": ["bgd", "bra", "chn", "cod", "egy", "eth", "fra", "gbr", "idn", "ind", "ita", "jpn", "pak", "phl", "rus", "tha", "tur", "ukr", "usa", "vnm"], "gdpa": ["bgd", "bra", "cod", "egy", "eth", "ind", "ita", "jpn", "nga", "pak", "phl", "tha", "ukr", "vnm"], "gdpp": ["ukr", "chn", "eth", "jpn", "pak", "usa", "ita", "tha", "vnm", "bgd", "cod", "ind", "nga", "bra", "egy"], "unem": ["bgd", "bra", "can", "chn", "cod", "deu", "egy", "eth", "fra", "gbr", "idn", "ind", "jpn", "mex", "nga", "pak", "phl", "rus", "tha", "tur", "ukr", "usa", "vnm"], "empl": ["bgd", "can", "chn", "cod", "egy", "eth", "gbr", "idn", "ind", "jpn", "nga", "pak", "tha", "tur", "ukr", "usa", "vnm"], "expo": ["bgd", "bra", "cod", "deu", "egy", "eth", "gbr", "idn", "ind", "irn", "jpn", "nga", "pak", "phl", "rus", "tha", "tur", "ukr", "usa", "vnm"], "impo": ["bgd", "bra", "cod", "deu", "egy", "eth", "gbr", "idn", "ind", "irn", "jpn", "nga", "pak", "phl", "rus", "tha", "tur", "ukr", "usa", "vnm"], "popu": ["bgd", "bra", "can", "chn", "cod", "deu", "egy", "eth", "fra", "idn", "ind", "ita", "jpn", "mex", "nga", "pak", "phl", "tha", "tur", "ukr", "usa", "vnm"], "nGwh": ["bra", "can", "chn", "deu", "fra", "gbr", "ind", "jpn", "mex", "usa"], "gfcf": ["bra", "ita", "phl", "vnm"], "ineq": ["can", "chn", "idn", "irn", "tur", "usa"], "wage": ["can", "chn", "fra", "gbr", "idn", "usa"], "by10": ["can"], "debt": ["can", "cod", "deu", "eth", "fra", "gbr", "ind", "jpn", "pak", "phl", "tha", "ukr", "usa"], "coal": ["chn"], "esta": ["chn"], "cons": ["chn", "ita", "phl"], "cnst": ["chn"], "rail": ["chn"], "gdp": ["deu", "usa"], "part": ["deu", "mex", "usa"], "fert": ["fra", "ita"], "house": ["fra", "ita"], "undr": ["fra"], "gold": ["gbr"], "vacn": ["gbr"], "wage_r": ["gbr"], "gdp_r": ["gbr"], "cpi": ["gbr"], "ginv_r": ["gbr"], "gcon_r": ["gbr"], "npcon_r": ["gbr"], "binv_r": ["gbr"], "hours": ["gbr"], "hcon_r": ["gbr"], "impo_r": ["gbr"], "expo_r": ["gbr"], "nvq4": ["gbr"], "pisa": ["gbr"], "rand": ["gbr"], "binv": ["gbr"], "ginv": ["gbr"], "irat": ["gbr"], "lend": ["gbr"], "mort": ["gbr"], "brate": ["gbr"], "intr": ["gbr"], "redn": ["gbr"], "indx": ["ind"], "tele": ["ind"], "capit": ["irn"], "petro": ["irn"], "wine": ["ita"], "jobv": ["ita"], "elec": ["ita", "vnm"], "conf": ["ita", "mex"], "incm": ["ita"], "inter": ["mex"], "hexp": ["phl"], "tour": ["phl"], "finv": ["phl"], "dgva": ["phl"], "gni": ["phl"], "union": ["phl"], "lshr": ["phl"], "povt": ["phl"], "umpd": ["rus"], "gimpo": ["ukr"], "refu": ["ukr"], "fdip": ["vnm"], "mobi": ["vnm"]}

0 commit comments

Comments
 (0)