12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- function employment() {
- var chartDom = document.getElementById("jysychart");
- var myChart = echarts.init(chartDom);
- var option;
- myChart.clear();
- option = {
- tooltip: {
- trigger: "axis",
- axisPointer: {
- type: "shadow",
- },
- },
- legend: {},
- grid: {
- left: "3%",
- right: "4%",
- bottom: "3%",
- containLabel: true,
- },
- xAxis: {
- type: "category",
- boundaryGap: [0, 0.01],
- },
- yAxis: {
- type: "value",
- data: ["Brazil", "Indonesia", "USA", "India", "China", "World"],
- },
- series: [
- {
- name: "城镇新增就业人数",
- type: "bar",
- data: [18203, 23489, 29034, 104970, 131744, 630230],
- itemStyle:{
- color:'#509EF3'
- }
- },
- {
- name: "城镇登记失业人员就业人数",
- type: "bar",
- data: [19325, 23438, 31000, 121594, 134141, 681807],
- },
- ],
- };
- option && myChart.setOption(option);
- }
|