Skip to content

Latest commit

 

History

History
120 lines (73 loc) · 6.64 KB

File metadata and controls

120 lines (73 loc) · 6.64 KB

JavaScript Drill-Down CoVID Map Dashboard

JavaScript Drill-Down CoVID Map Dashboard

This demo application belongs to the set of examples for LightningChart JS, data visualization library for JavaScript.

LightningChart JS is entirely GPU accelerated and performance optimized charting library for presenting massive amounts of data. It offers an easy way of creating sophisticated and interactive charts and adding them to your website or web application.

The demo can be used as an example or a seed project. Local execution requires the following steps:

  • Make sure that relevant version of Node.js is installed

  • Open the project folder in a terminal:

      npm install              # fetches dependencies
      npm start                # builds an application and starts the development server
    
  • The application is available at http://localhost:8080 in your browser, webpack-dev-server provides hot reload functionality.

Description

LightningChart JS example which showcases combination of MapChart and ChartXY features to implement a multi-dimensional data visualization. Amount of new CoVID cases in each country are displayed with a bubble (size and color represents number of new cases), while country color represents the vaccination coverage in the country (1 or more vaccines).

The global number of daily cases as well as average vaccination coverage is displayed at the bottom. The active date that is displayed in the main chart above can be changed by dragging on the slider.

By placing mouse cursor above the main chart, a popup chart will be displayed over the nearest country from the mouse location. This chart shows the previous 4 weeks data from the active date. Depending on availability, the following data will be shown:

  • Vaccination coverage (1 vaccination, % of country population)
  • New CoVID cases (graph displays number relative to population, while label displays actual number of cases)
  • Hospitalized CoVID patients (graph displays number relative to population, while label displays actual number of patients)
  • Intensive care CoVID patients (graph displays number relative to population, while label displays actual number of patients)

The idea behind measurements relative to population is that the readings can be compared between countries, even if they might have different number of citizens.

Drill-down to data

By left-clicking once, you can drill down around the mouse location. For example, clicking around the Europe area will zoom the map view into just Europe. Further more, you can drill down into a single country to show the full historical progression of that country's CoVID data.

In this view you can also compare a single country's data to the calculated average from available global data.

Zooming back out can be done by double left-clicking.

Data sources

General CoVID data is from the openly accessible Owid Covid dataset found in GitHub.

CoVID Vaccine data is referenced from the work of Hasell, J., Mathie, E., Beltekia, D. et al. A cross-country database of COVID-19 testing. Sci Data 7, 345 (2020).

Contains information from World countries by Modammed Le Doze, which is made available here under the Open Database License (ODbL).

More map examples:

API Links

Support

If you notice an error in the example code, please open an issue on GitHub repository of the entire example.

Official API documentation can be found on LightningChart website.

If the docs and other materials do not solve your problem as well as implementation help is needed, ask on StackOverflow (tagged lightningchart).

If you think you found a bug in the LightningChart JavaScript library, please contact sales@lightningchart.com.

Direct developer email support can be purchased through a Support Plan or by contacting sales@lightningchart.com.

© LightningChart Ltd 2009-2022. All rights reserved.