diff --git a/Controller/__pycache__/RuYuanZaiYuanCountController.cpython-312.pyc b/Controller/__pycache__/RuYuanZaiYuanCountController.cpython-312.pyc index c6062c3..a03c2dc 100644 Binary files a/Controller/__pycache__/RuYuanZaiYuanCountController.cpython-312.pyc and b/Controller/__pycache__/RuYuanZaiYuanCountController.cpython-312.pyc differ diff --git a/Model/__pycache__/RuYuanZaiYuanCountModel.cpython-312.pyc b/Model/__pycache__/RuYuanZaiYuanCountModel.cpython-312.pyc index 65367fd..3334db4 100644 Binary files a/Model/__pycache__/RuYuanZaiYuanCountModel.cpython-312.pyc and b/Model/__pycache__/RuYuanZaiYuanCountModel.cpython-312.pyc differ diff --git a/static/js/index.js b/static/js/index.js index e77ed40..d8f250d 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -28,22 +28,11 @@ $(function () { async: false, dataType: "json", url: "/RuYuanZaiYuan/school/preschool/chart", - success: function (option) { + success: function (res) { option_1_1.series.forEach((seriesItem, index) => { seriesItem.tooltip = { valueFormatter: (v) => v + " 万人" }; }); - option_1_1.xAxis[0].data = [ - "2013", - "2016", - "2017", - "2018", - "2019", - "2020", - "2021", - "2022", - "2023", - "2024", - ]; + option_1_1.xAxis[0].data = res.xAxis_data; myChart.setOption(option_1_1); window.addEventListener("resize", function () { myChart.resize();