当前位置:网站首页>Echart 心得 (一): 有关Y轴yAxis属性
Echart 心得 (一): 有关Y轴yAxis属性
2022-06-24 06:51:00 【拿鼓思谱】
最近一直在开发有关echarts图的需求,也遇到了很多问题,特此将知道的和遇到的都写出来记录和分享一下.
有关Y轴的知识点:
1.不想要负Y轴(有时将数据处理了,或者数太小,都可能出现负Y轴,实际负轴没啥用),可以直接设置 min:0;
2.想要Y轴都是整数,设置坐标轴最小间隔大小 minInterval: 1 ,注意:只在数值轴或时间轴中(type: ‘value’ 或 ‘time’)有效。你弄个别的,这个设置未必有效了
3.Y轴想展示间隔(一条条横着的间隔线),添加splitLine属性
splitLine: {
show: true, // 如果不想间隔线,直接设为false
lineStyle: {
type: 'dashed', //间隔的类型,'solid''dashed''dotted'三个属性
color: '#e1e5f0', // 线的颜色
}
},
4.设置Y轴分割线个数, splitNumber =5,设置5个分割线
5.如何设置双Y轴,就是以前是一个对象,现在多加一个对象
yAxis: [
{
type: 'value',
name: '万元'
},
{
type: 'value',
name: 'Mwh'
}]
后面有新的分享的会在原有基础上增加
另外,echarts官网有关yAxis详细的各种属性,你也可以慢慢研究: echarts官网有关yAxis详解
如果文章对您有所帮助,就在文章的右上角或者文章的末尾点个赞吧!(づ ̄ 3 ̄)づ
如果喜欢比卡丘分享的文章,就给比卡丘点个关注吧!(๑′ᴗ‵๑)づ╭~
鉴于个人经验有限,所有观点及技术研点,如有异议,请直接回复讨论(请勿发表攻击言论)
拿走,不用谢!!!送人玫瑰,手留余香
边栏推荐
- 【资料上新】迅为基于3568开发板的NPU开发资料全面升级
- Moonwell Artemis现已上线Moonbeam Network
- What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
- Notes on the use of date and time base
- uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效
- 位运算
- UTC、GMT、CST
- How to realize high stability and high concurrency of live video streaming transmission and viewing?
- 闲谈:3AC到底发生了什么?
- 报错“Computation failed in `stat_summary_hex()`”
猜你喜欢

What kind of experience is it when the Institute earns 20000 yuan a month!

基于Distiller的模型压缩工具简介

OpenGauss数据库在 CentOS 上的实践,配置篇

语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)

单片机STM32F103RB,BLDC直流电机控制器设计,原理图、源码和电路方案

Oracle-高级SQL限定查询

Cold thinking on the hot track: multiplier effect is the fundamental requirement of East West calculation

语料库数据处理个案实例(句子检索相关个案)

Chapter 3: drawing triangles

没有专业背景,还有机会成为机器学习工程师吗?
随机推荐
站在风暴中心:如何给飞奔中的腾讯更换引擎
Any remarks
闲谈:3AC到底发生了什么?
LeetCode 207:课程表(拓扑排序判断是否成环)
PNAs: Geometric renormalization reveals the self similarity of multi-scale human connectome
Moonwell Artemis现已上线Moonbeam Network
Oracle-高级SQL限定查询
报错“Computation failed in `stat_summary_hex()`”
What should I pay attention to after the live broadcast system source code is set up?
简单的折射效果
Baidu map, coordinate inversion, picking coordinate position
BOM笔记
IndexError: Target 7 is out of bounds.
Thread blocking
力扣(LeetCode)174. 地下城游戏(2022.06.23)
第 2 篇:繪制一個窗口
Experience of Shenzhou computer
Detailed explanation of PHP data serialization test example
Commandes de console communes UE
光照使用的简单总结