ECharts Y轴相关配置项
xAxis:{position: 'top'} //让x轴在顶部
yAxis: { inverse:true} //让Y轴数据逆向
比如说有负数的图像是这样的,是不是感觉很奇怪
于是在yAxis: {}添加inverse:true之后
在xAxis{}添加position:"top"参数将x轴的标签数值放在上方,如图
添加背景水印
graphic: [
{
type: 'image', // 图形元素类型
id: 'logo', // 更新或删除图形元素时指定更新哪个图形元素,如果不需要用可以忽略。
right: 'center', // 根据父元素进行定位 (居中)
bottom: '0%', // 根据父元素进行定位 (0%), 如果bottom的值是 0,也可以删除该bottom属性值。
z: 0, // 层叠
bounding: 'all', // 决定此图形元素在定位时,对自身的包围盒计算方式
style: {
image: 'https://www.boxuegu.com/assets/user/background1.png', // 这里一定要注意、注意,必须是https开头的图片路径地址
width: 2200,
height:400
}
}
],