JavaScript Real-time Map Dashboard

Example on using MapChart with real-time animated data set and dynamic region coloring.

The data set is downloaded with fetch when the application is started.
It contains population for each country in Europe, North and South America in the year range between 1961-2019.

The dashboard contains 3 charts (for each region) and 1 cell with UI panel.
The UI panel contains interactive slider that can set a data period and year marker that can pause and start animation.

Every time the active year is changed, map regions data is quickly invalidated in real-time with the 'invalidateRegionValues' method

// Code snippet setting region values for all 3 map charts.
let year = 2005;

const regionValuesData = populationData.map((item) => ({
  ISO_A3: item["Country Code"],
  value: item[year],
}));

chartEurope.invalidateRegionValues(regionValuesData);
chartSA.invalidateRegionValues(regionValuesData);
chartNA.invalidateRegionValues(regionValuesData);