Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 4564d16

Browse files
committed
fix: update index.html for new api
1 parent e99fc4e commit 4564d16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,15 @@ <h3 class="chart-title">各国累计确诊占比</h3>
350350

351351
function load_province_map() {
352352
$.ajax({
353-
url: "http://111.231.75.86:8000/api/provinces/",
353+
url: "http://111.231.75.86:8000/api/provinces/CHN/",
354354
dataType: "json"
355355
}).done(function() {
356356
$("#mapChart").addClass("chart-done");
357357
}).done(function(data) {
358358
const chartData = [];
359359
for(let i in data) {
360360
chartData.push({
361-
name: data[i].provinceShortName,
361+
name: data[i].provinceName,
362362
value: data[i].currentConfirmedCount,
363363
source: data[i]
364364
});
@@ -477,7 +477,7 @@ <h3 class="chart-title">各国累计确诊占比</h3>
477477

478478
function load_usa_daily_list() {
479479
$.ajax({
480-
url: "http://111.231.75.86:8000/api/countries/美国/daily/",
480+
url: "http://111.231.75.86:8000/api/countries/USA/daily/",
481481
dataType: "json"
482482
}).done(function() {
483483
$("#trendChart").addClass("chart-done");

0 commit comments

Comments
 (0)