随笔分类 - echarts
摘要:option={ series:[ { barWidth: 20, name: "预警", type: "bar",//柱状图 stack: "Search Engine", data: [120, 132, 101, 134, 90, 230, 210], color: '#435188', ba
阅读全文
摘要:option={ yAxis: { splitArea: { show: true // 这里设置为false即可去掉Y轴的背景色 }, type: 'value' }, }
阅读全文
摘要:option = { yAxis: { axisTick: { show: false }, axisLine:{ show: false }, type: 'value' } };
阅读全文
摘要:option = { yAxis: { axisLabel:{ show: true, //是否显示文字 textStyle:{ color: 'red' //文字颜色 } } type: 'value' } };
阅读全文
摘要:option = { grid: { //对饼状图无效,饼状图在series中使用 radius:['0', '90%'], left: '30%', right: '4%', bottom: '3%', containLabel: true } }
阅读全文
摘要:option = { yAxis: { splitLine:{ lineStyle:{ type:'dashed',//y轴分割线类型 dashed为虚线 color:'red' } }, type: 'value' } };
阅读全文
摘要:option = { xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisLine: { lineStyle: { type: 'dashed', // 设置虚线类型 color
阅读全文
摘要:option = { xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisTick: { alignWithLabel: true, show: false } } ], };
阅读全文
摘要:xAxis: [ { type: 'category', data: ['九龙坡区', '大渡口区', '禹州区', '沙坪坝区', '大渡口区', '江北区'], axisLabel:{ show: true, textStyle:{ color: '#ff6600' //设置 字体颜色 } }
阅读全文
摘要:import * as echarts from 'echarts'; var chartDom = document.getElementById('main'); var myChart = echarts.init(chartDom); var option; option = { toolt
阅读全文

浙公网安备 33010602011771号