6.x,y轴

作者: 半生_温暖纯良_Junzer | 来源:发表于2020-07-09 17:52 被阅读0次

1.轴名称颜色

nameTextStyle:{
                            color:"#fff"
                        },

2.鼠标移入内容轴提示

axisLine:{
                        lineStyle:{
                            color:"#fff"
                        }
                    },

3.轴文字颜色

  axisLabel: {
                            textStyle:{
                                color:'#fff'
                            }
                        },

单个文字颜色

yAxis: {
                        type: 'category',
                        data: null,
                        axisLabel: {
                            show: true,
                            color: function(index) {
                                return index === "达州市" ? "#26FDF5" : "#fff";
                                },
                        },

4.单位轴拉伸

{
                        type: 'value',
                        name: '增速(%)',
                        max:function(value){
                 return parseInt(value.max*2)
                    },

5.线颜色

https://blog.csdn.net/weixin_42322501/article/details/83376766

6.线文字

https://blog.csdn.net/weixin_39090097/article/details/84230699
文字重叠
https://zhidao.baidu.com/question/1308805513474631939.html

7.线偏移

https://echarts.apache.org/zh/option.html#yAxis.offset

8.边界间隙

xAxis: [
      {
        type: 'value',
        position: 'top',
        boundaryGap: [0.1, 0.1],
        show: false,
      },
    ],

相关文章

网友评论

      本文标题:6.x,y轴

      本文链接:https://www.haomeiwen.com/subject/qnbscktx.html