如何水平对齐X轴和Y轴的比例值

时间:2019-04-16 03:42:05

标签: echarts

如何水平对齐X轴和Y轴的比例值

xAxis:[{                         类型:“类别”,                         splitLine:{                             显示:错误                         },                         axisTick:{                             显示:错误                         },                         axisLine:{                             显示:错误                         },                         数据:Array.from(new Set(that.trendName)),

                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#9ea6ad', 
                            fontFamily: 'Microsoft YaHei',
                            fontWeight: "normal"
                        }

                    }

                }],

                yAxis: [{
                    type: 'value',
                    axisLine: {
                        show: false,

                    },
                    axisTick: {
                        show: false
                    },
                    splitLine: {
                        show: true,
                        lineStyle: {
                            color: ["#fff", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee"]
                        }
                    }, 
                    splitNumber:5,
                    axisLabel: {
                        show: true,
                        padding: [0, 10, 0, 24],
                        textStyle: {
                            color: '#9ea6ad',
                            fontFamily: 'Microsoft YaHei',
                            fontWeight: "normal"
                        }
                    }

                }],

0 个答案:

没有答案