main
HuangHai 1 month ago
parent b775da967e
commit ca5340e2cb

File diff suppressed because one or more lines are too long

@ -0,0 +1,613 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文山州与楚雄州人口变化趋势对基础教育的影响分析报告</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: 'Microsoft YaHei', Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f9f9f9;
}
header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
}
h2 {
color: #3498db;
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
margin-top: 30px;
}
h3 {
color: #2c3e50;
margin-top: 20px;
}
.section {
background-color: #fff;
padding: 20px;
margin-bottom: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chart-container {
margin: 30px 0;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
canvas {
width: 100% !important;
height: auto !important;
}
.conclusion {
background-color: #e8f4fc;
padding: 20px;
border-left: 5px solid #3498db;
margin: 30px 0;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
.section, .chart-container {
padding: 15px;
}
}
</style>
</head>
<body>
<header>
<h1>文山州与楚雄州人口变化趋势对基础教育的影响分析报告</h1>
<p>基于2012-2035年人口与教育资源配置预测数据</p>
</header>
<div class="section">
<h2>报告摘要</h2>
<p>本报告分析了文山州与楚雄州2012-2022年的人口变化趋势并预测了2023-2035年的人口发展对基础教育资源配置的影响。数据显示两州总人口均呈现下降趋势城乡人口结构发生显著变化城镇人口增加而乡村人口减少。这种人口变化对基础教育资源配置提出了新的挑战特别是在教职工需求、学校占地面积和学生数量等方面。</p>
</div>
<div class="section">
<h2>详细分析</h2>
<h3>人口变化趋势</h3>
<p>文山州2012-2022年总人口持续下降年增长率约为-2.04%。2022年较2021年人口增长近1万人其他年份基本保持每年约减少5000人的速度在缓慢下降。预测显示未来13年人口将减少41.9万人至2035年降至303.5万人,年均增长率为-0.93%。</p>
<p>楚雄州2012-2022年常住人口呈先增长后下降趋势峰值出现在2019年达275.5万人从2020年后呈现下降趋势尤其是2020年由2019年的275.5万人直接下降至241.7万人减少33.8万人。预测显示2022-2035年常住人口将呈逐步下降趋势年均下降约2.54万人。</p>
<h3>城乡人口变化</h3>
<p>文山州2023-2035年城镇人口数量呈缓慢增长趋势乡村人口数量呈显著减少趋势。人口向州府所在地转移为文山市发展成为50万人口区域性中心城市奠定基础同时也对文山市城区教育发展提出新挑战。</p>
<p>楚雄州城乡人口变化呈现复杂趋势。2012-2022年全州城乡常住人口数量呈现波浪式下降趋势2023-2035年城镇人口数量呈缓慢增长趋势而乡村人口数量从2022年126.1万人下降至2035年的81.0万人年均下降3.2万人。</p>
</div>
<div class="section">
<h2>图表展示</h2>
<div class="chart-container">
<h3>图表1总人口变化趋势图</h3>
<canvas id="populationTrendChart"></canvas>
</div>
<div class="chart-container">
<h3>图表2城乡人口变化趋势图1</h3>
<canvas id="urbanRuralTrendChart1"></canvas>
</div>
<div class="chart-container">
<h3>图表3城乡人口变化趋势图2</h3>
<canvas id="urbanRuralTrendChart2"></canvas>
</div>
<div class="chart-container">
<h3>图表4学生数量变化趋势图1</h3>
<canvas id="studentTrendChart1"></canvas>
</div>
<div class="chart-container">
<h3>图表5学生数量变化趋势图2</h3>
<canvas id="studentTrendChart2"></canvas>
</div>
<div class="chart-container">
<h3>图表6学生数量对比图</h3>
<canvas id="studentComparisonChart"></canvas>
</div>
<div class="chart-container">
<h3>图表7教职工需求变化趋势图1</h3>
<canvas id="teacherTrendChart1"></canvas>
</div>
<div class="chart-container">
<h3>图表8教职工需求变化趋势图2</h3>
<canvas id="teacherTrendChart2"></canvas>
</div>
<div class="chart-container">
<h3>图表9学校占地面积需求对比图</h3>
<canvas id="schoolAreaChart"></canvas>
</div>
</div>
<div class="section">
<h2>结论与建议</h2>
<div class="conclusion">
<h3>主要结论</h3>
<p>1. 两州总人口均呈现下降趋势,但城乡人口结构变化显著,城镇人口增加而乡村人口减少。</p>
<p>2. 学生数量整体呈下降趋势,特别是乡村地区下降明显,城镇地区相对稳定或有小幅增长。</p>
<p>3. 教职工需求总体呈下降趋势,但存在区域性、结构性和学科性短缺问题。</p>
<p>4. 学校占地面积需求增长放缓或减少,现有资源基本能满足需求。</p>
<h3>政策建议</h3>
<p>1. 优化教育资源配置,适应城乡人口结构变化,加强城镇教育资源建设。</p>
<p>2. 关注教职工结构性短缺问题,加强师资培训和引进。</p>
<p>3. 合理规划学校布局,提高现有教育资源使用效率。</p>
<p>4. 加强乡村教育质量提升,防止城乡教育差距进一步扩大。</p>
</div>
</div>
<script>
// 图表1总人口变化趋势图
const populationTrendCtx = document.getElementById('populationTrendChart').getContext('2d');
const populationTrendChart = new Chart(populationTrendCtx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州总人口(万人)',
data: [345.4, 335, 325, 320, 318, 317, 318, 310, 305, 303.5],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.3,
fill: true
},
{
label: '楚雄州总人口(万人)',
data: [270, 273, 275, 275.5, 241.7, 239.1, 237.2, 225, 210, 195],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州总人口变化趋势(2012-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口(万人)'
}
}
}
}
});
// 图表2城乡人口变化趋势图1
const urbanRuralTrendChart1Ctx = document.getElementById('urbanRuralTrendChart1').getContext('2d');
const urbanRuralTrendChart1 = new Chart(urbanRuralTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州城镇人口(万人)',
data: [80, 85, 90, 92, 95, 98, 100, 110, 120, 130],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.3,
fill: true
},
{
label: '文山州乡村人口(万人)',
data: [265.4, 250, 235, 228, 223, 219, 218, 200, 185, 173.5],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州城乡人口变化趋势(2012-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口(万人)'
}
}
}
}
});
// 图表3城乡人口变化趋势图2
const urbanRuralTrendChart2Ctx = document.getElementById('urbanRuralTrendChart2').getContext('2d');
const urbanRuralTrendChart2 = new Chart(urbanRuralTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '楚雄州城镇人口(万人)',
data: [110, 115, 120, 128.2, 108.3, 110, 111.08, 115, 120, 125],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.3,
fill: true
},
{
label: '楚雄州乡村人口(万人)',
data: [160, 158, 155, 147.3, 133.4, 129.1, 126.1, 110, 90, 81],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '楚雄州城乡人口变化趋势(2012-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口(万人)'
}
}
}
}
});
// 图表4学生数量变化趋势图1
const studentTrendChart1Ctx = document.getElementById('studentTrendChart1').getContext('2d');
const studentTrendChart1 = new Chart(studentTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州学前在园幼儿(万人)',
data: [12, 13, 14, 15, 15.5, 16, 16.88, 15, 14.5, 14.83],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.3,
fill: true
},
{
label: '文山州小学生在校生(万人)',
data: [32, 33, 34, 35, 35.5, 35.8, 36.45, 34, 33, 32.02],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州学前和小学生在校生数量变化(2012-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '学生数量(万人)'
}
}
}
}
});
// 图表5学生数量变化趋势图2
const studentTrendChart2Ctx = document.getElementById('studentTrendChart2').getContext('2d');
const studentTrendChart2 = new Chart(studentTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州初中在校生(万人)',
data: [15, 16, 17, 17.5, 17.8, 18, 18.43, 17.5, 17, 16.2],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.3,
fill: true
},
{
label: '文山州高中在校生(万人)',
data: [4.28, 5, 6, 7, 7.5, 8, 8.94, 8.5, 8, 7.86],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州初中和高中在校生数量变化(2012-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '学生数量(万人)'
}
}
}
}
});
// 图表6学生数量对比图
const studentComparisonCtx = document.getElementById('studentComparisonChart').getContext('2d');
const studentComparisonChart = new Chart(studentComparisonCtx, {
type: 'bar',
data: {
labels: ['学前在园幼儿', '小学生在校生', '初中在校生', '高中在校生'],
datasets: [
{
label: '文山州2022年',
data: [16.88, 36.45, 18.43, 8.94],
backgroundColor: 'rgba(54, 162, 235, 0.7)'
},
{
label: '文山州2035年预测',
data: [14.83, 32.02, 16.2, 7.86],
backgroundColor: 'rgba(54, 162, 235, 0.3)'
},
{
label: '楚雄州2022年',
data: [7.5, 14.83, 7.61, 5.1],
backgroundColor: 'rgba(255, 99, 132, 0.7)'
},
{
label: '楚雄州2035年预测',
data: [6.64, 13.12, 6.74, 4.34],
backgroundColor: 'rgba(255, 99, 132, 0.3)'
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州学生数量对比(2022 vs 2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: '学生数量(万人)'
}
}
}
}
});
// 图表7教职工需求变化趋势图1
const teacherTrendChart1Ctx = document.getElementById('teacherTrendChart1').getContext('2d');
const teacherTrendChart1 = new Chart(teacherTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州学前教职工(万人)',
data: [1.1, 1.05, 1.0, 0.95],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.3,
fill: true
},
{
label: '文山州小学教职工(万人)',
data: [0.8, 0.75, 0.72, 0.69],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州学前和小学教职工需求变化(2022-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '教职工数量(万人)'
}
}
}
}
});
// 图表8教职工需求变化趋势图2
const teacherTrendChart2Ctx = document.getElementById('teacherTrendChart2').getContext('2d');
const teacherTrendChart2 = new Chart(teacherTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州初中教职工(万人)',
data: [0.6, 0.55, 0.52, 0.5],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.3,
fill: true
},
{
label: '文山州高中教职工(万人)',
data: [0.4, 0.38, 0.36, 0.35],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州初中和高中教职工需求变化(2022-2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '教职工数量(万人)'
}
}
}
}
});
// 图表9学校占地面积需求对比图
const schoolAreaCtx = document.getElementById('schoolAreaChart').getContext('2d');
const schoolAreaChart = new Chart(schoolAreaCtx, {
type: 'bar',
data: {
labels: ['学前', '小学', '初中', '高中'],
datasets: [
{
label: '文山州2022年',
data: [70, 180, 120, 160],
backgroundColor: 'rgba(54, 162, 235, 0.7)'
},
{
label: '文山州2035年预测',
data: [65, 170, 115, 150],
backgroundColor: 'rgba(54, 162, 235, 0.3)'
},
{
label: '楚雄州2022年',
data: [74.3, 186.5, 124.4, 166.6],
backgroundColor: 'rgba(255, 99, 132, 0.7)'
},
{
label: '楚雄州2035年预测',
data: [66.4, 166.6, 111.2, 143.2],
backgroundColor: 'rgba(255, 99, 132, 0.3)'
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州学校占地面积需求对比(2022 vs 2035)'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: '占地面积(万平方米)'
}
}
}
}
});
</script>
</body>
</html>

@ -0,0 +1,749 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文山州与楚雄州人口变化趋势对基础教育的影响分析报告</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f9f9f9;
}
header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
h1 {
color: #2c3e50;
font-size: 28px;
margin-bottom: 10px;
}
h2 {
color: #3498db;
font-size: 24px;
margin-top: 40px;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
h3 {
color: #16a085;
font-size: 20px;
margin-top: 30px;
}
.section {
background-color: white;
padding: 25px;
margin-bottom: 30px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.chart-container {
height: 400px;
margin: 20px 0;
}
.summary {
background-color: #f8f9fa;
padding: 20px;
border-left: 4px solid #3498db;
margin-bottom: 30px;
}
.conclusion {
background-color: #e8f4f8;
padding: 20px;
border-left: 4px solid #16a085;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
h1 {
font-size: 24px;
}
.section {
padding: 15px;
}
}
</style>
</head>
<body>
<header>
<h1>文山州与楚雄州人口变化趋势对基础教育的影响分析报告</h1>
<p>云南省教育资源配置发展预测分析报告</p>
</header>
<div class="section">
<h2>报告摘要</h2>
<div class="summary">
<p>本报告基于文山州与楚雄州2012-2022年人口数据及2035年预测数据分析了两州人口变化趋势及其对基础教育资源配置的影响。报告显示两州总人口均呈下降趋势城乡人口结构发生显著变化城镇人口增加而乡村人口减少。这种人口变化对基础教育资源配置提出了新的挑战包括教职工需求变化、学校占地面积调整以及城乡教育资源重新分配等问题。</p>
<p>报告通过9个图表系统展示了人口变化趋势、学生数量变化、教职工需求变化和学校占地面积需求变化等关键指标为教育资源配置决策提供了数据支持。</p>
</div>
</div>
<div class="section">
<h2>详细分析</h2>
<h3>1. 总人口变化趋势</h3>
<p>2012-2022年间文山州总人口持续下降年均增长率约为-2.04%。2022年较2021年人口增长近1万人其他年份基本保持每年约减少5000人的速度缓慢下降。预测显示2022-2035年文山州人口将减少41.9万人至2035年降至303.5万人,年均增长率为-0.93%。</p>
<p>楚雄州常住人口呈先增长后下降趋势峰值出现在2019年达275.5万人2020年后呈现下降趋势尤其是2020年由2019年的275.5万人直接下降至241.7万人减少33.8万人。2022-2035年楚雄州常住人口将呈逐步下降趋势年均下降约2.54万人。</p>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="populationTrendChart" width="800" height="400"></canvas>
</div>
<h3>2. 城乡人口变化趋势</h3>
<p>文山州2023-2035年城镇人口数量呈缓慢增长趋势乡村人口数量呈显著减少趋势。人口向州府所在地转移为文山市发展成为50万人口区域性中心城市奠定基础同时也对文山市城区教育发展提出新挑战。</p>
<p>楚雄州2012-2022年城乡常住人口数量呈现波浪式下降趋势峰值出现在2019年的128.2万人。2023-2035年全州城乡人口数量呈缓慢增长趋势但乡村人口数量呈显著减少趋势从2022年126.1万人下降至2035年的81.0万人年均下降3.2万人。</p>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="urbanRuralTrendChart1" width="800" height="400"></canvas>
</div>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="urbanRuralTrendChart2" width="800" height="400"></canvas>
</div>
<h3>3. 学生数量变化趋势</h3>
<p>文山州学前幼儿入园总数总体呈现波动变化未来13年将持续下降至2035年预计降至5.72万左右。小学生在校生数至2035年预计降至32.02万人左右较2022年减少约4.43万人。初中在校生数至2035年降至16.2万人左右减少约2.23万人。高中在校生数2035年预计降至7.86万人左右减少约1.08万人。</p>
<p>楚雄州学前在园幼儿数呈现明显持续上升趋势但未来将大幅减少至2035年预计达6.64万人左右。小学生在校生人数至2035年预计达到13.12万人左右减少1.71万人左右。初中在校生数至2035年预计达6.74万人左右减少约0.87万人。高中在校生人数至2035年预计达4.34万人左右减少约0.76万人。</p>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="studentTrendChart1" width="800" height="400"></canvas>
</div>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="studentTrendChart2" width="800" height="400"></canvas>
</div>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="studentComparisonChart" width="800" height="400"></canvas>
</div>
<h3>4. 教职工需求变化</h3>
<p>文山州基础教育教职工数总体需求呈缓慢下降趋势,各学段教职工数总体上基本满足需求,但是教职工的区域性、结构性、学科性短缺将长期存在。</p>
<p>楚雄州基础教育教职工数总体需求下降平缓学前教育教职工数需求从2023年的1.06万人减少至2035年的0.95万人左右小学教育教职工数从2023年的0.77万人减少至2035年的0.69万人左右初中教育教职工数从2023年的0.56万人减少至2035年的0.50万人左右。</p>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="teacherTrendChart1" width="800" height="400"></canvas>
</div>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="teacherTrendChart2" width="800" height="400"></canvas>
</div>
<h3>5. 学校占地面积需求</h3>
<p>文山州基础教育学校占地面积总量需求增长放缓,各学段学校占地面积总体上基本满足需求。</p>
<p>楚雄州基础教育学校占地面积总量需求减少平缓学前幼儿园占地面积从2023年的74.30万平方米减少至2035年的66.40万平方米小学占地面积从2023年的186.5万平方米减少至2035年的166.6万平方米初中占地面积从2023年的124.4万平方米减少至2035年的111.2万平方米。</p>
<div class="chart-container" style="height: 400px; margin: 20px 0;">
<canvas id="schoolAreaChart" width="800" height="400"></canvas>
</div>
</div>
<div class="section">
<h2>结论与建议</h2>
<div class="conclusion">
<h3>主要结论</h3>
<ol>
<li>两州总人口均呈现下降趋势,文山州下降更为平缓,楚雄州下降速度较快且波动较大。</li>
<li>城乡人口结构发生显著变化,城镇人口增加而乡村人口减少,人口向中心城市集中。</li>
<li>各学段学生数量总体呈下降趋势,但不同学段、不同区域变化幅度不一。</li>
<li>教职工需求总体呈下降趋势,但区域性、结构性短缺问题将长期存在。</li>
<li>学校占地面积需求增长放缓或减少,为优化资源配置提供了空间。</li>
</ol>
<h3>政策建议</h3>
<ol>
<li>建立动态调整机制,根据人口变化趋势优化教育资源配置。</li>
<li>加强城乡教育资源统筹,应对人口向城镇集中的趋势。</li>
<li>关注教职工结构性短缺问题,加强师资队伍建设。</li>
<li>利用学校占地面积需求变化的机会,优化学校布局,提高资源利用效率。</li>
<li>建立长期监测机制,持续跟踪人口变化对教育的影响。</li>
</ol>
</div>
</div>
<script>
window.onload = function() {
// 图表1总人口变化趋势图
const populationTrendCtx = document.getElementById('populationTrendChart').getContext('2d');
const populationTrendChart = new Chart(populationTrendCtx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州总人口(万人)',
data: [345.4, 338.2, 331.0, 330.0, 329.0, 328.0, 329.0, 323.0, 313.0, 303.5],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.1,
fill: true
},
{
label: '楚雄州总人口(万人)',
data: [270.0, 272.0, 274.0, 275.5, 241.7, 239.1, 237.2, 224.0, 209.0, 193.0],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州总人口变化趋势(2012-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表2城乡人口变化趋势图1
const urbanRuralTrendChart1Ctx = document.getElementById('urbanRuralTrendChart1').getContext('2d');
const urbanRuralTrendChart1 = new Chart(urbanRuralTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州城镇人口(万人)',
data: [100.0, 110.0, 120.0, 125.0, 130.0, 135.0, 140.0, 150.0, 160.0, 170.0],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.1,
fill: true
},
{
label: '文山州乡村人口(万人)',
data: [245.4, 228.2, 211.0, 205.0, 199.0, 193.0, 189.0, 173.0, 153.0, 133.5],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州城乡人口变化趋势(2012-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表3城乡人口变化趋势图2
const urbanRuralTrendChart2Ctx = document.getElementById('urbanRuralTrendChart2').getContext('2d');
const urbanRuralTrendChart2 = new Chart(urbanRuralTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '楚雄州城镇人口(万人)',
data: [120.0, 125.0, 127.0, 128.2, 108.3, 110.0, 111.08, 115.0, 120.0, 125.0],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.1,
fill: true
},
{
label: '楚雄州乡村人口(万人)',
data: [150.0, 147.0, 147.0, 147.3, 133.4, 129.1, 126.1, 109.0, 89.0, 81.0],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '楚雄州城乡人口变化趋势(2012-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '人口数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表4学生数量变化趋势图1
const studentTrendChart1Ctx = document.getElementById('studentTrendChart1').getContext('2d');
const studentTrendChart1 = new Chart(studentTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州学前在园幼儿(万人)',
data: [12.0, 13.5, 15.0, 15.5, 16.0, 16.5, 16.88, 15.5, 14.0, 14.83],
borderColor: 'rgba(255, 159, 64, 1)',
backgroundColor: 'rgba(255, 159, 64, 0.2)',
tension: 0.1,
fill: true
},
{
label: '文山州小学生在校生(万人)',
data: [36.0, 36.5, 37.0, 37.5, 36.5, 36.0, 36.45, 35.0, 33.5, 32.02],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州学前与小学学生数量变化趋势(2012-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '学生数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表5学生数量变化趋势图2
const studentTrendChart2Ctx = document.getElementById('studentTrendChart2').getContext('2d');
const studentTrendChart2 = new Chart(studentTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2012', '2015', '2018', '2019', '2020', '2021', '2022', '2025', '2030', '2035'],
datasets: [
{
label: '文山州初中在校生(万人)',
data: [14.0, 15.0, 16.0, 16.5, 17.0, 17.5, 18.43, 17.5, 16.5, 16.2],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.1,
fill: true
},
{
label: '文山州高中在校生(万人)',
data: [4.28, 5.5, 7.0, 7.5, 8.0, 8.5, 8.94, 8.5, 8.0, 7.86],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州初中与高中学生数量变化趋势(2012-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '学生数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表6学生数量对比图
const studentComparisonCtx = document.getElementById('studentComparisonChart').getContext('2d');
const studentComparisonChart = new Chart(studentComparisonCtx, {
type: 'bar',
data: {
labels: ['学前', '小学', '初中', '高中'],
datasets: [
{
label: '文山州2022年',
data: [16.88, 36.45, 18.43, 8.94],
backgroundColor: 'rgba(75, 192, 192, 0.7)'
},
{
label: '文山州2035年',
data: [14.83, 32.02, 16.2, 7.86],
backgroundColor: 'rgba(54, 162, 235, 0.7)'
},
{
label: '楚雄州2022年',
data: [7.5, 14.83, 7.61, 5.1],
backgroundColor: 'rgba(255, 159, 64, 0.7)'
},
{
label: '楚雄州2035年',
data: [6.64, 13.12, 6.74, 4.34],
backgroundColor: 'rgba(153, 102, 255, 0.7)'
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州各学段学生数量对比(2022 vs 2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: '学生数量(万人)'
}
},
x: {
title: {
display: true,
text: '学段'
}
}
}
}
});
// 图表7教职工需求变化趋势图1
const teacherTrendChart1Ctx = document.getElementById('teacherTrendChart1').getContext('2d');
const teacherTrendChart1 = new Chart(teacherTrendChart1Ctx, {
type: 'line',
data: {
labels: ['2023', '2025', '2030', '2035'],
datasets: [
{
label: '文山州学前教职工(万人)',
data: [0.85, 0.82, 0.78, 0.75],
borderColor: 'rgba(255, 159, 64, 1)',
backgroundColor: 'rgba(255, 159, 64, 0.2)',
tension: 0.1,
fill: true
},
{
label: '文山州小学教职工(万人)',
data: [1.2, 1.15, 1.1, 1.05],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州学前与小学教职工需求变化趋势(2023-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '教职工数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表8教职工需求变化趋势图2
const teacherTrendChart2Ctx = document.getElementById('teacherTrendChart2').getContext('2d');
const teacherTrendChart2 = new Chart(teacherTrendChart2Ctx, {
type: 'line',
data: {
labels: ['2023', '2025', '2030', '2035'],
datasets: [
{
label: '文山州初中教职工(万人)',
data: [0.9, 0.85, 0.8, 0.75],
borderColor: 'rgba(153, 102, 255, 1)',
backgroundColor: 'rgba(153, 102, 255, 0.2)',
tension: 0.1,
fill: true
},
{
label: '文山州高中教职工(万人)',
data: [0.6, 0.58, 0.55, 0.52],
borderColor: 'rgba(54, 162, 235, 1)',
backgroundColor: 'rgba(54, 162, 235, 0.2)',
tension: 0.1,
fill: true
},
{
label: '楚雄州学前教职工(万人)',
data: [1.06, 1.02, 0.98, 0.95],
borderColor: 'rgba(255, 99, 132, 1)',
backgroundColor: 'rgba(255, 99, 132, 0.2)',
tension: 0.1,
fill: true
},
{
label: '楚雄州小学教职工(万人)',
data: [0.77, 0.74, 0.71, 0.69],
borderColor: 'rgba(255, 206, 86, 1)',
backgroundColor: 'rgba(255, 206, 86, 0.2)',
tension: 0.1,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州教职工需求变化趋势(2023-2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: false,
title: {
display: true,
text: '教职工数量(万人)'
}
},
x: {
title: {
display: true,
text: '年份'
}
}
}
}
});
// 图表9学校占地面积需求对比图
const schoolAreaCtx = document.getElementById('schoolAreaChart').getContext('2d');
const schoolAreaChart = new Chart(schoolAreaCtx, {
type: 'bar',
data: {
labels: ['学前', '小学', '初中', '高中'],
datasets: [
{
label: '文山州2023年',
data: [120, 300, 200, 180],
backgroundColor: 'rgba(75, 192, 192, 0.7)'
},
{
label: '文山州2035年',
data: [115, 290, 190, 175],
backgroundColor: 'rgba(54, 162, 235, 0.7)'
},
{
label: '楚雄州2023年',
data: [74.3, 186.5, 124.4, 166.6],
backgroundColor: 'rgba(255, 159, 64, 0.7)'
},
{
label: '楚雄州2035年',
data: [66.4, 166.6, 111.2, 143.2],
backgroundColor: 'rgba(153, 102, 255, 0.7)'
}
]
},
options: {
responsive: true,
plugins: {
title: {
display: true,
text: '文山州与楚雄州学校占地面积需求对比(2023 vs 2035)',
font: {
size: 16
}
},
legend: {
position: 'top'
},
tooltip: {
mode: 'index',
intersect: false
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: '占地面积(万平方米)'
}
},
x: {
title: {
display: true,
text: '学段'
}
}
}
}
});
};
</script>
</body>
</html>

@ -109,6 +109,9 @@ public class AiController extends Controller {
String regionName = shiZhouA + "与" + shiZhouB; String regionName = shiZhouA + "与" + shiZhouB;
String htmlPrompt = HtmlGenerator.buildHtmlPrompt(content, regionName); String htmlPrompt = HtmlGenerator.buildHtmlPrompt(content, regionName);
System.out.println("提交到DeepSeek的提示词大小"+htmlPrompt.length());
// 调用DeepSeek API生成HTML报告 // 调用DeepSeek API生成HTML报告
CallDeepSeek.callDeepSeekStream(htmlPrompt, new CallDeepSeek.SSEListener() { CallDeepSeek.callDeepSeekStream(htmlPrompt, new CallDeepSeek.SSEListener() {
@Override @Override
@ -168,6 +171,7 @@ public class AiController extends Controller {
public void compareShiZhouPpt(String shiZhouA, String shiZhouB) throws Exception { public void compareShiZhouPpt(String shiZhouA, String shiZhouB) throws Exception {
// 数据获取 // 数据获取
String content = ym.collectEducationData(new String[]{shiZhouA, shiZhouB}); String content = ym.collectEducationData(new String[]{shiZhouA, shiZhouB});
//创建sse //创建sse
final SseEmitter sseEmitter = new SseEmitter(getResponse()); final SseEmitter sseEmitter = new SseEmitter(getResponse());
// 发送开始分析的消息 // 发送开始分析的消息

@ -14,7 +14,10 @@ public class HtmlGenerator {
"请根据以下数据内容生成一个完整的HTML格式报告。要求\n\n" + "请根据以下数据内容生成一个完整的HTML格式报告。要求\n\n" +
"1. 不要生成除HTML外的其它文字生成完整的HTML文档结构包含<!DOCTYPE html>、<html>、<head>、<body>等标签)\n" + "1. 不要生成除HTML外的其它文字生成完整的HTML文档结构包含<!DOCTYPE html>、<html>、<head>、<body>等标签)\n" +
"2. 使用现代化的CSS样式包含响应式设计\n" + "2. 使用现代化的CSS样式包含响应式设计\n" +
"3. 必须在<head>中引入Chart.js库<script src=\"https://cdn.jsdelivr.net/npm/chart.js\"></script>\n" + "3. 必须在<head>中引入Chart.js库使用以下任一可用地址\n" +
" - <script src=\"https://unpkg.com/chart.js\"></script>\n" +
" - <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js\"></script>\n" +
" - <script src=\"https://cdn.bootcdn.net/ajax/libs/Chart.js/3.9.1/chart.min.js\"></script>\n" +
"4. 【重要】必须生成固定的9个图表按以下顺序和ID生成\n" + "4. 【重要】必须生成固定的9个图表按以下顺序和ID生成\n" +
" - 图表1总人口变化趋势图canvas id: populationTrendChart\n" + " - 图表1总人口变化趋势图canvas id: populationTrendChart\n" +
" - 图表2城乡人口变化趋势图1canvas id: urbanRuralTrendChart1\n" + " - 图表2城乡人口变化趋势图1canvas id: urbanRuralTrendChart1\n" +
@ -25,12 +28,12 @@ public class HtmlGenerator {
" - 图表7教职工需求变化趋势图1canvas id: teacherTrendChart1\n" + " - 图表7教职工需求变化趋势图1canvas id: teacherTrendChart1\n" +
" - 图表8教职工需求变化趋势图2canvas id: teacherTrendChart2\n" + " - 图表8教职工需求变化趋势图2canvas id: teacherTrendChart2\n" +
" - 图表9学校占地面积需求对比图canvas id: schoolAreaChart\n" + " - 图表9学校占地面积需求对比图canvas id: schoolAreaChart\n" +
"5. 每个canvas元素必须包装在<div class=\"chart-container\">中\n" + "5. 每个canvas元素必须包装在<div class=\"chart-container\">中,并设置固定高度:<div class=\"chart-container\" style=\"height: 400px; margin: 20px 0;\">\n" +
"6. JavaScript代码必须在</body>前为每个canvas创建对应的Chart实例\n" + "6. 每个canvas元素必须设置宽度和高度属性<canvas id=\"xxx\" width=\"800\" height=\"400\"></canvas>\n" +
"7. 图表数据要根据数据内容合理推算和展示,确保数据真实有效\n" + "7. JavaScript代码必须在</body>前为每个canvas创建对应的Chart实例\n" +
"8. 报告标题为:《%s人口变化趋势对基础教育的影响分析报告》\n" + "8. 图表数据要根据数据内容合理推算和展示,确保数据真实有效\n" +
"9. 包含报告摘要、详细分析、图表展示、结论建议等章节\n" + "9. 报告标题为:《%s人口变化趋势对基础教育的影响分析报告》\n" +
"10. 样式要美观专业,适合作为正式报告展示\n" + "10. 包含报告摘要、详细分析、图表展示、结论建议等章节\n" +
"11. 直接输出完整的HTML代码不要用markdown包装\n" + "11. 直接输出完整的HTML代码不要用markdown包装\n" +
"12. 【重要】必须为所有9个图表生成完整的JavaScript初始化代码\n" + "12. 【重要】必须为所有9个图表生成完整的JavaScript初始化代码\n" +
"13. 【重要】每个canvas元素都必须有对应的完整Chart初始化代码包含完整的data、options等配置\n" + "13. 【重要】每个canvas元素都必须有对应的完整Chart初始化代码包含完整的data、options等配置\n" +
@ -38,7 +41,10 @@ public class HtmlGenerator {
"15. 【重要】必须为所有9个图表生成完整的JavaScript初始化代码一个都不能少\n" + "15. 【重要】必须为所有9个图表生成完整的JavaScript初始化代码一个都不能少\n" +
"16. 【重要】生成的HTML必须是完整的包含完整的</body>和</html>结束标签\n" + "16. 【重要】生成的HTML必须是完整的包含完整的</body>和</html>结束标签\n" +
"17. 【重要】检查生成的HTML确保所有9个图表的JavaScript代码都完整没有任何代码被截断或省略\n" + "17. 【重要】检查生成的HTML确保所有9个图表的JavaScript代码都完整没有任何代码被截断或省略\n" +
"18. 【重要】如果某个图表的数据不足可以使用合理的模拟数据但必须生成所有9个图表\n\n" + "18. 【重要】如果某个图表的数据不足可以使用合理的模拟数据但必须生成所有9个图表\n" +
"19. 【重要】确保Chart.js图表能正确渲染检查数据格式和配置是否正确\n" +
"20. 【重要】在JavaScript代码开始前添加window.onload事件确保DOM加载完成window.onload = function() { ... };\n" +
"21. 【重要】每个图表的数据必须是有效的数字数组不能包含null、undefined或非数字值\n\n" +
"数据内容:\n%s\n\n" + "数据内容:\n%s\n\n" +
"请根据数据内容生成包含固定9个图表的完整HTML代码。特别注意必须生成所有9个图表的完整JavaScript代码不能有任何截断", "请根据数据内容生成包含固定9个图表的完整HTML代码。特别注意必须生成所有9个图表的完整JavaScript代码不能有任何截断",
regionName, dataContent regionName, dataContent

@ -15,9 +15,12 @@ public class YunNanModel {
* @return * @return
*/ */
public String collectEducationData(String[] regions) { public String collectEducationData(String[] regions) {
// 查询教育资源配置发展预测相关表 // 查询教育资源配置发展预测相关表【低于32K】
String sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dataease' AND TABLE_NAME LIKE 'excel_报告-教育资源配置发展预测%';"; String sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dataease' AND TABLE_NAME LIKE 'excel_报告-教育资源配置发展预测%';";
List<com.jfinal.plugin.activerecord.Record> tableList = Db.find(sql);
// 超过32K
//String sql="select table_name as TABLE_NAME from core_dataset_table where dataset_group_id in (select id from core_dataset_group where pid='1036317909951057920')";
List<Record> tableList = Db.use(DataEaseModel.DB_NAME).find(sql);
StringBuilder dataContent = new StringBuilder(); StringBuilder dataContent = new StringBuilder();
@ -26,14 +29,14 @@ public class YunNanModel {
dataContent.append("对比州市:").append(String.join(" vs ", regions)).append("\n\n"); dataContent.append("对比州市:").append(String.join(" vs ", regions)).append("\n\n");
// 遍历所有相关数据表 // 遍历所有相关数据表
for (com.jfinal.plugin.activerecord.Record record : tableList) { for (Record record : tableList) {
String tableName = record.getStr("TABLE_NAME"); String tableName = record.getStr("TABLE_NAME");
dataContent.append("数据表:").append(tableName).append("\n"); dataContent.append("数据表:").append(tableName).append("\n");
// 为每个地区收集数据 // 为每个地区收集数据
for (String region : regions) { for (String region : regions) {
sql = "select * from `" + tableName + "` where `行政区划`=?"; sql = "select * from `" + tableName + "` where `行政区划`=?";
List<com.jfinal.plugin.activerecord.Record> listContent = Db.use(DataEaseModel.DB_NAME).find(sql, region); List<Record> listContent = Db.use(DataEaseModel.DB_NAME).find(sql, region);
if (!listContent.isEmpty()) { if (!listContent.isEmpty()) {
dataContent.append("\n").append(region).append("数据:\n"); dataContent.append("\n").append(region).append("数据:\n");

Loading…
Cancel
Save