JavaScript Animated CoVID Vaccination Coverage Chart - Editor

Example which showcases laying LightningChart JS ChartXY data visualization features over a LightningChart JS MapChart.

This is likely to be the single easiest method available of implementing a geographical data visualization component:

  • No tile server or large tile storage required
  • Can be used offline
  • Extremely simple to develop (minimal setup less than 50 lines of code)

The two charts are laid perfectly over each other by placing them on their own HTML div elements with same position and size. To complete the setting, MapChart provides a method onViewChange which can be used to conveniently synchronize the map latitude and longitude view with the overlaid XY axes.

// Minimal working code for overlaid and synchronized MapChart and ChartXY.
const divMap = document.createElement("div");

const divOverlay = document.createElement("div");

const mapChart = lightningChart()
    type: MapTypes.World,
    container: divMap,

const chart = lightningChart()
    container: divOverlay,
  .forEach((axis) =>

mapChart.onViewChange((view) => {
  const { latitudeRange, longitudeRange, margin } = view;
    .setInterval(longitudeRange.start, longitudeRange.end, false, true);
    .setInterval(latitudeRange.start, latitudeRange.end, false, true);
}); = "100vw"; = "100vh"; = "absolute"; = "0px"; = "0px";
mapChart.engine.layout(); = "100vw"; = "100vh"; = "absolute"; = "0px"; = "0px";

The example animates the progression of first round of Covid-19 vaccines coverage across all countries.

The used data set is from

Hannah Ritchie, Edouard Mathieu, Lucas Rodés-Guirao, Cameron Appel, Charlie Giattino, Esteban Ortiz-Ospina, Joe Hasell, Bobbie Macdonald, Diana Beltekian and Max Roser (2020) - "Coronavirus Pandemic (COVID-19)". Published online at Retrieved from: '' [Online Resource]

More map examples: