欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

echarts堆疊柱狀圖柱子之間間隔開具體實(shí)現(xiàn)代碼

 更新時(shí)間:2024年11月25日 11:25:03   作者:533_  
ECharts是一個(gè)強(qiáng)大的數(shù)據(jù)可視化庫,它的堆疊柱狀圖通常用于比較各個(gè)分類的數(shù)據(jù)總量,這篇文章主要給大家介紹了echarts堆疊柱狀圖柱子之間間隔開具體實(shí)現(xiàn)的相關(guān)資料,需要的朋友可以參考下

https://echarts.zhangmuchen.top/#/detail?cid=85095-9454-8a93-b33d7-999a76a3

itemStyle: { //柱子顏色
	normal: {
		color: '#4e73de',
		borderColor: "#fff",// 用border做
		borderWidth: 10,
	}
},

具體:

    option = {
    	backgroundColor: '#fff',
    	title: {
    		text: "策略變更",
    		top: 10,
    		left: 15,
    		textStyle: {
    			color: "#35598d",
    			fontSize: 16,
    			fontWeight: 'normal'
    		}
    	},
    	tooltip: {
    		trigger: 'axis',
    	},
    	grid: {
    		left: '5%',
    		right: '6%',
    		bottom: '3%',
    		top: '20%',
    		containLabel: true
    	},
    	legend: {
    		icon: 'rect',
    		right: "3%",
    		top: 13,
    		itemWidth: 20,
    		itemHeight: 10,
    		textStyle: {
    			color: '#555'
    		},
    		data: ['新增', '修改', '刪除']
    	},
    	xAxis: {
    		type: 'category',
    		data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    		axisLabel: { //坐標(biāo)軸字體顏色
    			textStyle: {
    				color: '#9eaaba'
    			}
    		},
    		axisLine: {
    			lineStyle: {
    				color: "#e5e5e5"
    			}
    		},
    		axisTick: { //y軸刻度線
    			show: false
    		},
    		splitLine: { //網(wǎng)格
    			show: false,

    		}
    	},
    	yAxis: {
    		type: 'value',
    		axisLabel: { //坐標(biāo)軸字體顏色
    			textStyle: {
    				color: '#9eaaba'
    			}
    		},
    		axisLine: {
    			show: false,
    		},
    		axisTick: { //y軸刻度線
    			show: false
    		},
    		splitLine: { //網(wǎng)格
    			show: true,
    			lineStyle: {
    				color: '#dadde4',
    				type: "dashed"
    			}
    		}
    	},
    	series: [{
    		name: '新增',
    		type: 'bar',
    		stack: '策略變更',
    		barWidth: '40%', //柱子寬度
    		itemStyle: { //柱子顏色
    			normal: {
    				color: '#4e73de',
    				borderColor: "#fff",
    				borderWidth: 10,
    			}
    		},
    		data: [232, 193, 240, 214, 239, 223, 202]
    	}, {
    		name: '修改',
    		type: 'bar',
    		stack: '策略變更',
    		barWidth: '40%', //柱子寬度
    		itemStyle: { //柱子顏色
    			normal: {
    				color: '#2dafeb',
    				borderColor: "#fff",
    				borderWidth: 10,
    			}
    		},
    		data: [320, 332, 301, 334, 390, 330, 320]
    	}, {
    		name: '刪除',
    		type: 'bar',
    		stack: '策略變更',
    		barWidth: '40%', //柱子寬度
    		itemStyle: { //柱子顏色
    			normal: {
    				color: '#35c68d',
    				borderColor: "#fff",
    				borderWidth: 10,
    			}
    		},
    		data: [60, 82, 51, 94, 100, 68, 74]
    	}]
    };

總結(jié) 

到此這篇關(guān)于echarts堆疊柱狀圖柱子之間間隔開的文章就介紹到這了,更多相關(guān)echarts堆疊柱狀圖柱子間隔開內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論