Echarts实战案例代码(29):来找茬,柱状图在F11全屏下显示三角形的异形情况案例

在这里插入图片描述
异常代码:

        xAxis: {
            type: 'category',
            axisTick: {
                show: false
            },
            axisLine: {
                show: true,
                lineStyle: {
                    color: 'rgba(255,255,255,0.2)',
                }
            },
            axisLabel: {
                textStyle: {
                    color: '#bac0c0',
                    fontSize: '10',
                },
            },
            data: dataName,
        },
        yAxis: {
            type: 'value',
            axisTick: {
                show: false
            },
            axisLine: {
                show: true,
                lineStyle: {
                    color: 'rgba(255,255,255,0.2)',
                }
            },
            splitLine: {
                show: true,
                lineStyle: {
                    color: 'rgba(255,255,255,0.1)',
                }
            },
            axisLabel: {
                textStyle: {
                    color: '#bac0c0',
                    fontWeight: 'normal',
                    fontSize: '12',
                },
                formatter: '{value}',
            },
        },

正常代码:

        xAxis: [
            {
                "type": "category",
                data: dataName,
                axisLine: {lineStyle: {color: "rgba(255,255,255,.1)"}},
                inverse: true,
                axisLabel: {
                    textStyle: {color: "rgba(255,255,255,.6)", fontSize: '12'}
                }
            }
        ],
        yAxis: {
            type: "value",
            show: true,
            axisLabel: {show: true},
            axisLine: {lineStyle: {color: 'rgba(255,255,255,.4)'}},
            splitLine: {show: true, lineStyle: {color: "rgba(255,255,255,0.2)"}}
        },

LOCKDATAV DONE!

©️2020 CSDN 皮肤主题: 精致技术 设计师:CSDN官方博客 返回首页