2021-01-16_echarts柱状图-折线图

柱状图堆叠

// 主要是使用stack设置堆叠
leftOption = {
    title : {
        text: 'xxxxx',
        padding: [18,0,0,12]
    },
    tooltip : {
        trigger: 'axis',
        axisPointer: {
            type: 'none'

        }
    },
    legend: {
        data:['xxx','xxx','yyy','yyy'],
        textStyle: {
            color: '#000'
        },
        align: 'right',
        right: 10,
        top: 18
    },
    grid: {
        left: '2%',
        right: '2%',
        bottom: '2%',
        top: '15%',
        containLabel: true
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            data : [],
            axisLine:{lineStyle:{color:'#000'}},
            axisLabel: {
                show: true,
                interval:0,rotate:40,
                textStyle: {
                    color: '#000'
                }
            }
        }
    ],
    yAxis : [
        {
            type : 'value',
            axisLine:{lineStyle:{color:'#000'}},
            axisLabel: {
                show: true,
                textStyle: {
                    color: '#000'
                }
            }

        }
    ],
    series : [
        {
            name:'xxx',
            type:'bar',
            data:[],
            stack: 'xx',
            itemStyle:{
                normal:{
                    color:'#5FD3A7'
                }
            },
            // barGap: '0%'
        },
        {
            name:'xxx',
            type:'bar',
            data:[],
            stack: 'xx',
            itemStyle:{
                normal:{
                    color:'#F7C700'
                }
            },
            // barGap: '0%'
        },
        {
            name:'yyy',
            type:'bar',
            data:[],
            stack: 'yy',
            itemStyle:{
                normal:{
                    color:'#64BD52'
                }
            },
            // barGap: '0%'
        },
        {
            name:'yyy',
            type:'bar',
            data:[],
            stack: 'yy',
            itemStyle:{
                normal:{
                    color:'#FFAA00'
                }
            },
            // barGap: '0%'
        }
    ]
}

效果图

柱状图折线图

//  yAxisIndex 使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用。
$baseInfo.option = {
		//标题
		title:{
			text:"",
			left: "10",
			top: "10",
			textStyle:{
				fontSize: 30  
			}
		},
		//提示框组件
		tooltip : {
			trigger : 'axis',  //触发类型
			axisPointer : {    //坐标轴指示器配置项
				type : 'line',
				crossStyle : {
					color : '#000'
				}
			}
		},
		//调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
		color : [ '#8B4513', '#9400D3', '#FFD700' ],
		//全局的字体样式。
		textStyle : {
			color : '#000000',
		},
		//工具栏
		/* toolbox : {
			top:15,
			feature : {
				dataView : {
					show : true,
					readOnly : false
				},
				magicType : {
					show : true,
					type : [ 'line', 'bar' ]
				},
				restore : {
					show : true
				},
				saveAsImage : {
					show : true
				}
			}
		}, */
	    grid: {
			top:"15%",
		    left: "5%",
			right:"5%"
		},
		legend : {
			top:15,
			textStyle : {
				color : '#000000'
			},
			data : [ '', '', '', '', '', '' ]
		},
		xAxis : [ {
			type : 'category',
			data : [ '1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月' ],
			axisPointer : {
				type : 'shadow'
			},
			axisLine : {
				lineStyle : {
					color : '#000000'
				}
			},
		} ],
		yAxis : [ {
			type : 'value',
			name : '正常数',
			min : 0,
			axisLine : {
				lineStyle : {
					color : '#000000'
				}
			},
			splitLine : {
				show : false
			},
			axisLabel : {
				formatter : '{value}'
			}
		}, {
			type : 'value',
			name : '正常率',
			min : 0,
			max : 100,
			interval : 10,
			axisLine : {
				lineStyle : {
					color : '#000000'
				}
			},
			splitLine : {
				show : false
			},
			axisLabel : {
				formatter : '{value} %'
			}
		} ],
		series : [ {
			name : '',
			type : 'bar'/* ,
			data:[10,20,30,4,5,6,5,8,4,6,7,9] */
		}, {
			name : '',
			type : 'bar'/* ,
			data:[30,20,10,4,5,6,5,8,4,6,7,9] */
		}, {
			name : '',
			type : 'bar'/* ,
			data:[40,40,20,4,5,6,5,8,4,6,7,9] */
		}, {
			name : '',
			type : 'line',
			/* data:[10,20,30,50,60,40,30,20,10,20,50,60], */
			yAxisIndex : 1
		}, {
			name : '',
			type : 'line',
			/* data:[30,20,10,20,50,60,10,20,30,50,60,40], */
			yAxisIndex : 1
		}, {
			name : '',
		/* 	data:[40,40,20,10,20,30,50,60,10,20,50,60], */
			type : 'line',
			yAxisIndex : 1
		} ]
	};

在这里插入图片描述

基于bert实现关系三元组抽取python源码+数据集+项目说明.zip基于bert实现关系三元组抽取python源码+数据集+项目说明.zip基于bert实现关系三元组抽取python源码+数据集+项目说明.zip基于bert实现关系三元组抽取python源码+数据集+项目说明.zip基于bert实现关系三元组抽取python源码+数据集+项目说明.zip 个人大四的毕业设计、课程设计、作业、经导师指导并认可通过的高分设计项目,评审平均分达96.5分。主要针对计算机相关专业的正在做毕设的学生和需要项目实战练习的学习者,也可作为课程设计、期末大作业。 [资源说明] 不懂运行,下载完可以私聊问,可远程教学 该资源内项目源码是个人的毕设或者课设、作业,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96.5分,放心下载使用! 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),供学习参考。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值