Title: Wrong Continents data
Last modified: May 20, 2020

---

# Wrong Continents data

 *  Resolved [Jakub](https://wordpress.org/support/users/jakubgrac/)
 * (@jakubgrac)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/)
 * Hi, you have wrong data set for continents, probably changed order on [https://corona.lmao.ninja/v2/continents](https://corona.lmao.ninja/v2/continents)…
   for Europe showing data for North America and etc
    -  This topic was modified 6 years, 4 months ago by [Jakub](https://wordpress.org/support/users/jakubgrac/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * (@freeduke)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12862328)
 * Yeah, the order of continents had been changed form api data, will fix this with
   next release.
    Thank you for reporting this.
 *  Plugin Author [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * (@freeduke)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12876031)
 * [@jakubgrac](https://wordpress.org/support/users/jakubgrac/)
    Hi, new version
   is online, the “wrong continent data” issue is now fixed. 🙂
 * Thank you.
 *  Thread Starter [Jakub](https://wordpress.org/support/users/jakubgrac/)
 * (@jakubgrac)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12878708)
 * Hi, thanks and again new order in API 😀 Europe data3 and SA data 2 … not possible
   fetch data by continent name?
 *  Plugin Author [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * (@freeduke)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12879395)
 * This is actually to reduce the number of requests, which is related to the operation
   mode of this plugin.
 * If we request separately, there will be performance problems for both user websites
   and the API. 🙂
 *  Thread Starter [Jakub](https://wordpress.org/support/users/jakubgrac/)
 * (@jakubgrac)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12879434)
 * thought from this url [https://corona.lmao.ninja/v2/continents](https://corona.lmao.ninja/v2/continents),
   not possible (i dont know 😀 ) fetch data by continens name instead of data[1]
   etc?
 *  Plugin Author [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * (@freeduke)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12879488)
 * You are right, this is definitely a big issue, I will keep working on the possibilities
   of getting right data from one request.
 * Thank you 😀
 *  Thread Starter [Jakub](https://wordpress.org/support/users/jakubgrac/)
 * (@jakubgrac)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12904203)
 * I using now this function for fetch data by continent name, so dont worry if 
   order change again 😀
 *     ```
               const continentToAbbr = {"Europe": "eu", "Asia": "as", "North America": "na", "South America": "sa", "Africa": "af", "Australia/Oceania": "oa"};
   
       		$.getJSON(urlc, function(data, status) {
   
           for (const item of data) {
   
               $("#cov-" + continentToAbbr[item["continent"]] + "-cases").append(item["cases"]).digits();
               $("#cov-" + continentToAbbr[item["continent"]] + "-recoverd").append(item["recovered"]).digits();
               $("#cov-" + continentToAbbr[item["continent"]] + "-dead").append(item["deaths"]).digits(); 
               $("#cov-" + continentToAbbr[item["continent"]] + "-active").append(item["active"]).digits();      
               $("#cov-" + continentToAbbr[item["continent"]] + "-today-case").append(item["todayCases"]).digits();       
               $("#cov-" + continentToAbbr[item["continent"]] + "-today-deaths").append(item["todayDeaths"]).digits();       
               $("#cov-" + continentToAbbr[item["continent"]] + "-critical").append(item["critical"]).digits();       
               $("#cov-" + continentToAbbr[item["continent"]] + "-tests").append(item["tests"]).digits();            
              }   
       ```
   
 *  Plugin Author [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * (@freeduke)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12907984)
 * Good job [@jakubgrac](https://wordpress.org/support/users/jakubgrac/) ! Thank
   you 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

 The topic ‘Wrong Continents data’ is closed to new replies.

 * ![](https://ps.w.org/corona-virus-data/assets/icon-256x256.png?rev=2248214)
 * [Corona Virus Data](https://wordpress.org/plugins/corona-virus-data/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/corona-virus-data/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/corona-virus-data/)
 * [Active Topics](https://wordpress.org/support/plugin/corona-virus-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/corona-virus-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/corona-virus-data/reviews/)

## Tags

 * [continents](https://wordpress.org/support/topic-tag/continents/)

 * 8 replies
 * 2 participants
 * Last reply from: [Duke Yin](https://wordpress.org/support/users/freeduke/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/wrong-continents-data/#post-12907984)
 * Status: resolved