当前位置:网站首页>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 ̄)づ
如果喜欢比卡丘分享的文章,就给比卡丘点个关注吧!(๑′ᴗ‵๑)づ╭~
鉴于个人经验有限,所有观点及技术研点,如有异议,请直接回复讨论(请勿发表攻击言论)
拿走,不用谢!!!送人玫瑰,手留余香
边栏推荐
- BOM notes
- Wechat cloud hosting hot issues Q & A
- 屏幕截图推荐—Snipaste
- [special session] SME growth plan - ECS special session
- Exness: Powell insisted on his anti inflation commitment and pointed out that recession is possible
- Unity 的序列化
- 调用Feign接口时指定ip
- 第 1 篇:搭建OpenGL环境
- RDD的执行原理
- What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
猜你喜欢

某问答社区App x-zse-96签名分析

Chapter 3: drawing triangles

2022年PMP项目管理考试敏捷知识点(1)

调用Feign接口时指定ip

Specify IP when calling feign interface

图形技术之坐标转换

Mousse shares listed on Shenzhen Stock Exchange: gross profit margin continued to decline, and marketing failed in the first quarter of 2022

Moonwell Artemis现已上线Moonbeam Network

Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its

GPU is not used when the code is running
随机推荐
What is the lifecycle of automated testing?
『C语言』系统日期&时间
Cold thinking on the hot track: multiplier effect is the fundamental requirement of East West calculation
UTC、GMT、CST
10. Tencent cloud IOT device side learning - firmware upgrade
[Lua language from bronze to king] Part 2: development environment construction +3 editor usage examples
atguigu----15-内置指令
Phonics
Q & A on cloud development cloudbase hot issues of "Huage youyue phase I"
1-4metasploitable2介绍
Detailed explanation of C language compilation, link and operation
js实现查看一个数组对象中是否包含另一个数组对象中的值
2022年PMP项目管理考试敏捷知识点(1)
某问答社区App x-zse-96签名分析
Introduction of model compression tool based on distiller
行内元素、块元素、行内块元素
【资料上新】迅为基于3568开发板的NPU开发资料全面升级
pair类备注
Exness: Powell insisted on his anti inflation commitment and pointed out that recession is possible
[special session] SME growth plan - ECS special session