Skip to content

Commit

Permalink
Daily Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixZFB committed Mar 17, 2020
1 parent e9a285a commit 340909a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions nCov_ECharts_map_visualization/nCov_distribution_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
saveAsImage: {}
}
},


// 连续映射方案
// 视觉映射,疫情颜色根据传染病疫情等级分类为4机:蓝色-黄色-橙色-红色
// 为了是视觉分布更好,可以添加更多的颜色范围,然后适当调小max的值,因为湖北和后面省份相差太大
// 湖北有几万确诊,其它较严重省份人数在1000多人,max值设置在1500,整个地图颜色变化相对均匀
Expand All @@ -54,6 +57,8 @@
}
},


// 分段映射方案:
// visualMap默认是连续映射,我们也可以设置为分段型,对于分布范围广的数据
// 使用透明度来区分疫情严重情况
/*visualMap: {
Expand Down
4 changes: 2 additions & 2 deletions nCov_data_analysis/province_data_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def province_today_data(self):
for province in areaTree:
province_name.append(province['name'])
province_today_confirm.append(province['today']['confirm'])
province_today_suspect.append(province['today']['suspect'])
# province_today_suspect.append(province['today']['suspect']) # 目前疑似病例数据已经没了可以注销该栏
province_today_dead.append(province['total']['dead'])
province_today_heal.append(province['total']['heal'])
# print(province_today_confirm)
Expand All @@ -63,7 +63,7 @@ def main(self):
self.province_today_data()

if __name__ == '__main__':
province_data= ProvinceData()
province_data = ProvinceData()
province_data.main()


2 changes: 1 addition & 1 deletion nCov_data_analysis/province_total.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name": ["湖北", "广东", "河南", "浙江", "湖南", "安徽", "江西", "江苏", "重庆", "山东", "四川", "黑龙江", "北京", "上海", "福建", "河北", "陕西", "广西", "海南", "云南", "贵州", "山西", "辽宁", "天津", "甘肃", "吉林", "宁夏", "新疆", "内蒙古", "香港", "台湾", "青海", "澳门", "西藏"], "value": [48206, 1241, 1169, 1145, 968, 910, 872, 570, 518, 506, 451, 395, 366, 315, 279, 265, 229, 222, 157, 155, 135, 126, 116, 113, 87, 84, 64, 63, 61, 50, 18, 18, 10, 1]}
{"name": ["湖北", "广东", "河南", "浙江", "湖南", "安徽", "江西", "山东", "江苏", "重庆", "四川", "黑龙江", "北京", "上海", "河北", "福建", "广西", "陕西", "云南", "海南", "香港", "贵州", "天津", "山西", "甘肃", "辽宁", "吉林", "新疆", "内蒙古", "宁夏", "台湾", "青海", "澳门", "西藏"], "value": [67799, 1364, 1273, 1232, 1018, 990, 935, 761, 631, 576, 539, 482, 456, 358, 318, 296, 253, 246, 176, 168, 157, 146, 136, 133, 133, 125, 93, 76, 75, 75, 67, 18, 12, 1]}

0 comments on commit 340909a

Please sign in to comment.