python_weather/web/js/data.js
2024-06-07 20:15:48 +08:00

64 lines
3.0 KiB
JavaScript

const Chart1_Data = {
"x": ['渝中区', '九龙坡区', '沙坪坝区', '南岸区', '江北区', '渝北区', '巴南区'],
"y": [15.6, 14.2, 12.8, 11.7, 9.5, 7.8, 6.3]
};
const Chart2_Data = {
"x": ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
"y1": [30, 32, 35, 33, 31, 28, 27, 29, 30, 31, 32, 31],
"y2": [20, 22, 25, 23, 21, 18, 17, 19, 20, 21, 22, 21],
"y3": [25, 27, 30, 28, 26, 23, 22, 24, 25, 26, 27, 26]
};
const Chart4_Data = {
"x": ['渝中区', '九龙坡区', '沙坪坝区', '南岸区', '江北区', '渝北区', '巴南区'],
"y": [28, 29, 30, 30, 31, 32, 33]
};
const Chart5_Data = {
"x": ['渝中区', '九龙坡区', '沙坪坝区', '南岸区', '江北区', '渝北区', '巴南区'],
"y": [70, 72, 75, 73, 68, 71, 74]
};
const Chart6_Data = [
{
"name": "永川区",
"value": [
[1, 55, '良'],
[2, 25, '优'],
[3, 56, '良'],
[4, 33, '优'],
[25, 42, '优'],
[26, 154, '中度污染'],
[27, 234, '重度污染'],
[28, 160, '中度污染'],
[29, 134, '轻度污染'],
[30, 52, '良'],
[31, 46, '优']
]
}
];
const Chart31_Data = [
{value: 335, name: '晴天', weather: ['渝中区', '永川区'], color: '#065aab'}, // 调整颜色
{value: 310, name: '多云', weather: ['九龙坡区'], color: '#066eab'},
{value: 234, name: '小雨', weather: ['沙坪坝区'], color: '#0682ab'},
{value: 135, name: '大雨', weather: ['南岸区'], color: '#0696ab'},
{value: 1548, name: '阴天', weather: ['江北区'], color: '#06a0ab'},
{value: 148, name: '雷阵雨', weather: ['渝北区'], color: '#06b4ab'},
{value: 248, name: '雾', weather: ['巴南区'], color: '#06c8ab'}
];
const Chart32_Data = [
{value: 335, name: '优', degree: ['渝中区'], color: '#065aab'}, // 调整颜色
{value: 310, name: '良', degree: ['九龙坡区'], color: '#066eab'},
{value: 234, name: '轻度污染', degree: ['沙坪坝区'], color: '#0682ab'},
{value: 135, name: '中度污染', degree: ['南岸区'], color: '#0696ab'},
{value: 1548, name: '严重污染', degree: ['江北区'], color: '#06a0ab'},
{value: 148, name: '中度污染', degree: ['渝北区'], color: '#06b4ab'},
{value: 248, name: '中度污染', degree: ['巴南区'], color: '#06c8ab'}
];
const Chart33_Data = [
{value: 335, name: '1 m/s', degree: ['渝中区'], color: '#065aab'}, // 调整颜色
{value: 310, name: '2 m/s', degree: ['九龙坡区'], color: '#066eab'},
{value: 234, name: '3 m/s', degree: ['沙坪坝区'], color: '#0682ab'},
{value: 135, name: '4 m/s', degree: ['南岸区'], color: '#0696ab'},
{value: 1548, name: '5 m/s', degree: ['江北区'], color: '#06a0ab'},
{value: 148, name: '6 m/s', degree: ['渝北区'], color: '#06b4ab'},
{value: 248, name: '7 m/s', degree: ['巴南区'], color: '#06c8ab'}
];