宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 解决办法
  3. 正文

ECharts折线图yAxis设置min、max和splitNumber

2018年1月7日 1635点热度 0人点赞 0条评论

设置属性:min=1.1, max=2.4,splitNumber=10

代码:

option = {
tooltip : {
                trigger : 'axis'
            },
            legend : {
                data : textLine
            },
            calculable : true,
            dataZoom : {
                show : true,
                // realtime: true,
                start : 0,
                end : 100
            },
            xAxis : [
            {
                type : 'category',
                boundaryGap : true,
                axisTick : {
                    onGap : false
                },
                splitLine : {
                    show : false
                },
                data : arrX
            } ],
            yAxis : [ {
                min:1.1,
                max:2.4,
                splitNumber:10,
                type : 'value',
                axisLabel : {
                    formatter : '{value}'
                }
            } ],
            series : [ {
                name : textLine[0],
                type : 'line',
                data : dataValue

            } ]
}
标签: 暂无
最后更新:2022年3月23日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2