随笔分类 -  echarts

摘要:option={ series:[ { barWidth: 20, name: "预警", type: "bar",//柱状图 stack: "Search Engine", data: [120, 132, 101, 134, 90, 230, 210], color: '#435188', ba 阅读全文
posted @ 2024-03-20 13:42 龙卷风吹毁停车场 阅读(242) 评论(0) 推荐(0)
摘要:option={ yAxis: { splitArea: { show: true // 这里设置为false即可去掉Y轴的背景色 }, type: 'value' }, } 阅读全文
posted @ 2024-03-15 14:22 龙卷风吹毁停车场 阅读(219) 评论(0) 推荐(0)
摘要:option = { yAxis: { axisTick: { show: false }, axisLine:{ show: false }, type: 'value' } }; 阅读全文
posted @ 2024-03-15 14:15 龙卷风吹毁停车场 阅读(481) 评论(0) 推荐(0)
摘要:option = { yAxis: { axisLabel:{ show: true, //是否显示文字 textStyle:{ color: 'red' //文字颜色 } } type: 'value' } }; 阅读全文
posted @ 2024-03-15 14:12 龙卷风吹毁停车场 阅读(340) 评论(0) 推荐(0)
摘要:option = { grid: { //对饼状图无效,饼状图在series中使用 radius:['0', '90%'], left: '30%', right: '4%', bottom: '3%', containLabel: true } } 阅读全文
posted @ 2024-03-15 13:58 龙卷风吹毁停车场 阅读(193) 评论(0) 推荐(0)
摘要:option = { yAxis: { splitLine:{ lineStyle:{ type:'dashed',//y轴分割线类型 dashed为虚线 color:'red' } }, type: 'value' } }; 阅读全文
posted @ 2024-03-15 13:47 龙卷风吹毁停车场 阅读(455) 评论(0) 推荐(0)
摘要:option = { xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisLine: { lineStyle: { type: 'dashed', // 设置虚线类型 color 阅读全文
posted @ 2024-03-15 13:42 龙卷风吹毁停车场 阅读(290) 评论(0) 推荐(0)
摘要:option = { xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisTick: { alignWithLabel: true, show: false } } ], }; 阅读全文
posted @ 2024-03-15 13:38 龙卷风吹毁停车场 阅读(93) 评论(0) 推荐(0)
摘要:xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisLabel:{ show: true, textStyle:{ color: '#ff6600' //设置 字体颜色 } } 阅读全文
posted @ 2024-03-15 12:00 龙卷风吹毁停车场 阅读(255) 评论(0) 推荐(0)
摘要:import * as echarts from 'echarts'; var chartDom = document.getElementById('main'); var myChart = echarts.init(chartDom); var option; option = { toolt 阅读全文
posted @ 2024-03-15 11:14 龙卷风吹毁停车场 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-03-15 10:14 龙卷风吹毁停车场 阅读(78) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-03-15 10:12 龙卷风吹毁停车场 阅读(194) 评论(0) 推荐(0)