function culturalTourism() { // 文化旅游 var chartDom = document.getElementById("whlyEchar"); var myChart = echarts.init(chartDom); var alldata = [ [3418160, 352098], [33427158, 2604714], ]; var option; var data = alldata[0]; option = { tooltip: { trigger: "axis", axisPointer: { type: "cross", crossStyle: { color: "#999", }, }, }, legend: { data: ["海外游客", "国内游客", "国内游客同比增减", "海外游客同比增减"], }, xAxis: [ { type: "category", data: [ "2023年1月", "2023年2月", "2023年3月", "2023年4月", "2023年5月", "2023年6月", "2023年7月", "2023年8月", "2023年9月", "2023年10月", ], axisPointer: { type: "shadow", }, }, ], yAxis: [ { type: "value", name: "游客数", axisLabel: { formatter: "{value} 人次", }, }, { type: "value", name: "同比增减", interval: 5, max: 50, axisLabel: { formatter: "{value} %", }, }, ], series: [ { name: "海外游客", type: "bar", yAxisIndex: 0, tooltip: { valueFormatter: function (value) { return value + " 人次"; }, }, data: [0, 788, 1026, 1740, 1967, 2200, 2720, 2748, 3231, 5539], }, { name: "国内游客", type: "bar", tooltip: { valueFormatter: function (value) { return value + " 人次"; }, }, data: [ 4741245, 4821452, 4524574, 4054582, 4484144, 3325145, 4047415, 3415412, 4851414, 4914414, ], itemStyle: { color: "red", }, }, { name: "国内同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [ 33.46, 20.45, 26.2, 28.72, 18.09, 16.04, 10.66, 17.96, 13.98, 6.38, ], }, { name: "海外同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("gyykEchart"); var myChart = echarts.init(chartDom); var alldata = [ [3418160, 352098], [33427158, 2604714], ]; var option; var data = alldata[0]; option = { tooltip: { trigger: "axis", axisPointer: { type: "cross", crossStyle: { color: "#999", }, }, }, legend: { data: [ "过夜游客", "入境过夜住宿游客", "过夜游客同比增减", "入境过夜住宿游客同比增减", ], }, xAxis: [ { type: "category", data: [ "2023年1月", "2023年2月", "2023年3月", "2023年4月", "2023年5月", "2023年6月", "2023年7月", "2023年8月", "2023年9月", "2023年10月", ], axisPointer: { type: "shadow", }, }, ], yAxis: [ { type: "value", name: "游客数", axisLabel: { formatter: "{value} 人次", }, }, { type: "value", name: "同比增减", interval: 20, max: 200, axisLabel: { formatter: "{value} %", }, }, ], series: [ { name: "过夜游客", type: "bar", yAxisIndex: 0, tooltip: { valueFormatter: function (value) { return value + " 人次"; }, }, data: [ 254124, 303870, 300848, 355720, 326500, 310942, 389612, 352098, 284177, 344331, ], }, { name: "入境过夜住宿游客", type: "bar", tooltip: { valueFormatter: function (value) { return value + " 人次"; }, }, data: [0, 788, 1026, 1740, 1967, 2200, 2720, 2748, 3231, 5539], itemStyle: { color: "red", }, }, { name: "过夜游客同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [ 22.09, 95.24, 132.26, 181.72, 116.83, 32.77, 106.47, 17.96, 26.06, 18.81, ], }, { name: "入境过夜住宿游客同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("zsrEchart"); var myChart = echarts.init(chartDom); var alldata = [ [3418160, 352098], [33427158, 2604714], ]; var option; var data = alldata[0]; option = { title:{ text:'旅游总收入' }, tooltip: { trigger: "axis", axisPointer: { type: "cross", crossStyle: { color: "#999", }, }, }, legend: { data: ["旅游总收入"], }, xAxis: [ { type: "category", data: [ "2023年1月", "2023年2月", "2023年3月", "2023年4月", "2023年5月", "2023年6月", "2023年7月", "2023年8月", "2023年9月", "2023年10月", ], axisPointer: { type: "shadow", }, }, ], yAxis: [ { type: "value", name: "总收入", axisLabel: { formatter: "{value} 万元", }, }, { type: "value", name: "同比增减", interval: 20, max: 100, axisLabel: { formatter: "{value} %", }, }, ], series: [ { name: "旅游总收入", type: "bar", yAxisIndex: 0, tooltip: { valueFormatter: function (value) { return value + " 万元"; }, }, data: [ 251414, 304154, 322454, 308451, 424215, 298541, 353411, 296332, 384412, 311452, ], }, { name: "旅游总收入同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [ 38.55, 24.93, 34.84, 20.75, 26.53, 20.44, 15.02, 20.03, 19.22, 8.82, ], }, ], }; option && myChart.setOption(option); var chartDom = document.getElementById("cyrsEchart"); var myChart = echarts.init(chartDom); var alldata = [ [3418160, 352098], [33427158, 2604714], ]; var option; var data = alldata[0]; option = { title:{ text:'旅游从业人数' }, tooltip: { trigger: "axis", axisPointer: { type: "cross", crossStyle: { color: "#999", }, }, }, legend: { data: ["旅游从业人数"], }, xAxis: [ { type: "category", data: [ "2023年1月", "2023年2月", "2023年3月", "2023年4月", "2023年5月", "2023年6月", "2023年7月", "2023年8月", "2023年9月", "2023年10月", ], axisPointer: { type: "shadow", }, }, ], yAxis: [ { type: "value", name: "旅游从业人数", axisLabel: { formatter: "{value} 人次", }, }, { type: "value", name: "同比增减", interval: 5, max: 30, axisLabel: { formatter: "{value} %", }, }, ], series: [ { name: "旅游从业人数", type: "bar", yAxisIndex: 0, tooltip: { valueFormatter: function (value) { return value + " 人次"; }, }, data: [ 33102, 33104, 33245, 33447, 33541, 33654, 33145, 33210, 32010, 32511, ], }, { name: "旅游直接从业人数", type: "bar", yAxisIndex: 0, tooltip: { valueFormatter: function (value) { return value + " 万元"; }, }, data: [6642, 6647, 6721, 6842, 6847, 6719, 6641, 6652, 6622, 6421], }, { name: "旅游从业人数同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [3.12, 3.05, 3.54, 4.2, 4.86, 5.23, 3.67, 5.57, 3.22, 4.07], }, { name: "旅游直接从业人数同比增减", type: "line", yAxisIndex: 1, tooltip: { valueFormatter: function (value) { return value + " %"; }, }, data: [3.46, 3.46, 4.69, 6.66, 6.98, 5.15, 4.03, 4.76, 4.88, 2.88], }, ], }; option && myChart.setOption(option); }