Git Product home page Git Product logo

corona-covid-stats's Introduction

Corona (COVID-19) Live Stats WordPress Plugin

=== Corona (COVID-19) Live Stats ===
Contributors: the-rock, pagup
Tags: corona, covid-19, covid, stats, coronavirus, virus
Requires at least: 4.1
Requires PHP: 5.6
Tested up to: 5.4
Stable tag: 1.0.2

This plugins displays Corona (COVID-19) Live Stats in multiple formats. You can add card with Global Stats, Country Stats, Country Stats with Chart and Table with data for all countries.

USAGE

Please check demo and available parameters/settings on https://covid19-wp.netlify.app/

Here is the list of basic shortcodes.

COVID-19 Global Stats Card [covid-widget type="global-card"]

COVID-19 Global Stats Wide (full width) [covid-widget type="global-wide" bgcolor="#043785" textcolor="#ffffff"]

COVID-19 Single Country Stats Card [covid-widget type="country-card" country="US" bgcolor="#043785"]

Country Card with Chart Shortcode [covid-widget type="country-chart" country="US" charttype="bar"] chart types: bar, horizontalBar, doughnut, line, radar, polarArea

COVID-19 Affected Countries Data Table [covid-widget type="table"]

Note: You must have to use country name as defined in data source. Please check country name list on https://covid19-wp.netlify.app/. e.g: "United States" will not work but "US" or "USA" will work. Similarly "South Korea" won't work. This is because the data source listed country names like` that. You have to use shortcode generator, select country from drop-down and then copy full shortcode or copy defined country name inside your shortcode.

Data Source: NovelCOVID/API. Documentation can be found here. Please check Privacy Policy here and License here

The code for this WordPress plugin is under MIT licensed.

Installation

Installing manually

  1. Download Plugin in Zip format
  2. Go to WordPress admin > Plugins > Add New
  3. Upload Zip file and Activate Plugin
  4. Go to https://covid19-wp.netlify.app for Shortcode Generator.

OR

  1. Clone this repo or Unzip all files to the /wp-content/plugins. Directory strucutre should look like /wp-content/plugins/corona-covid-stats
  2. Log into WordPress admin and activate the 'Corona (COVID-19) Stats' plugin through the 'Plugins' menu
  3. Go to https://covid19-wp.netlify.app for Shortcode Generator.

This is a open source free plugin. You can do whatever you want with it. And you can use this service as is. I try my best to ensure stability. If there is any problem or need help. Please post on issues.

Changelog

1.0.0

  • Initial release with rapidapi source.

1.0.1

1.0.2

  • Changed data source to NovelCOVID/API.
  • Added Critical and Cases Per Million to Global, Countries Stats.

1.0.3

  • Fixed link for rating notice

1.0.4

  • ๐Ÿ› FIX: Width issue and label issue for all widgets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.