function healthCareNew() { var chartDom = document.getElementById("wsylchar"); var myChart = echarts.init(chartDom); var option; myChart.clear(); option = { xAxis: { type: "category", data: ["2021年", "2022年", "2023年"], }, yAxis: { type: "value", axisLabel: { formatter: "{value} 家", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, backgroundColor: "rgb(0 0 0 / 40%)", borderColor: "transparent", textStyle: { color: "#fff", }, valueFormatter: function (value) { return value + " 家"; }, confine: true }, series: [ { name: "在园幼儿", data: [682, 707, 753], type: "bar", barWidth: "60", }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("other1"); var myChart = echarts.init(chartDom); myChart.clear(); var option; option = { xAxis: { type: "category", data: ["2021年", "2022年", "2023年"], }, yAxis: { type: "value", axisLabel: { formatter: "{value} 个", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, legend: { type: "plain", }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, backgroundColor: "rgb(0 0 0 / 40%)", borderColor: "transparent", textStyle: { color: "#fff", }, valueFormatter: function (value) { return value + " 个"; }, confine: true }, series: [ { name: "医疗机构床位数", data: [7208, 7200, 5396], type: "bar", barWidth: "60", }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("ylryEchar"); var myChart = echarts.init(chartDom); myChart.clear(); var option; option = { xAxis: { type: "category", data: ["2021年", "2022年", "2023年"], }, yAxis: { type: "value", axisLabel: { formatter: "{value} 家", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, legend: { show: true, type: "scroll", }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, backgroundColor: "rgb(0 0 0 / 40%)", borderColor: "transparent", textStyle: { color: "#fff", }, valueFormatter: function (value) { return value + " 家"; }, confine: true }, series: [ { name: "医院", data: [24, 24, 24], type: "bar", itemStyle: { color: "#27C2C1", }, }, { name: "卫生院", data: [7, 7, 6], type: "bar", itemStyle: { color: "#3377D6", }, }, { name: "社区卫生服务中心(站)", data: [46, 46, 45], type: "bar", itemStyle: { color: "#5470C6", }, }, { name: "村卫生室", data: [33, 31, 28], type: "bar", itemStyle: { color: "#91CC75", }, }, { name: "疾控中心", data: [1, 1, 1], type: "bar", itemStyle: { color: "#FAC03E", }, }, { name: "妇幼保健院", data: [1, 1, 1], type: "bar", itemStyle: { color: "#FA8319", }, }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("zlrsEchar"); var myChart = echarts.init(chartDom); myChart.clear(); var option; option = { xAxis: { type: "category", data: ["2021年", "2022年", "2023年"], }, yAxis: { type: "value", axisLabel: { formatter: "{value} 人", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, backgroundColor: "rgb(0 0 0 / 40%)", borderColor: "transparent", textStyle: { color: "#fff", }, valueFormatter: function (value) { return value + " 人"; }, confine: true }, legend: { show: true, type: "scroll", }, series: [ { name: "卫生技术人员", data: [10856, 10435, 11596], type: "bar", itemStyle: { color: "#3377D6", }, }, { name: "执业(助理)医师", data: [4267, 3360, 4554], type: "bar", itemStyle: { color: "#FA8319", }, }, { name: "注册护士", data: [6589, 4054, 7042], type: "bar", itemStyle: { color: "#2294FF", }, }, { name: "每千人口执业(助理)医师", data: [3.36, 2.8, 3.79], type: "bar", itemStyle: { color: "#91CC75", }, }, { name: "每千人口注册护士", data: [5.19, 3.38, 5.86], type: "bar", itemStyle: { color: "#27C2C1", }, }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("zlrs"); var myChart = echarts.init(chartDom); myChart.clear(); var option; option = { xAxis: { type: "category", data: ["2021年", "2022年", "2023年"], }, yAxis: { type: "value", axisLabel: { formatter: "{value} 万人", }, }, grid: { left: "3%", right: "4%", bottom: "3%", containLabel: true, }, tooltip: { trigger: "axis", axisPointer: { type: "shadow", }, backgroundColor: "rgb(0 0 0 / 40%)", borderColor: "transparent", textStyle: { color: "#fff", }, valueFormatter: function (value) { return value + " 万人"; }, confine: true }, legend: { show: true, type: "scroll", }, series: [ { name: "总诊疗人次", data: [576.8, 564.99, 342.5], type: "bar", itemStyle: { color: "#3377D6", }, }, { name: "门急诊人次", data: [529.7, 530.2, 342.6], type: "bar", itemStyle: { color: "#27C2C1", }, }, { name: "入院人次", data: [11.3, 11.3, "一年统计一次"], type: "bar", itemStyle: { color: "#2294FF", }, }, { name: "出院人次", data: [11.3, 11.2, 12], type: "bar", itemStyle: { color: "#91CC75", }, }, ], }; option && myChart.setOption(option); }