Compare commits

..

2 Commits

Author SHA1 Message Date
cc11287e57 Merge branch 'main' of http://10.10.14.176:3000/huanghai/YunNanProject 2025-09-11 14:36:40 +08:00
192959357e 'commit' 2025-09-11 14:36:40 +08:00
3 changed files with 2 additions and 13 deletions

View File

@@ -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();