0
点赞
收藏
分享

微信扫一扫

简单修改echarts 折线图tooltip自定义

兮城 2022-02-16 阅读 50
 tooltip: {
                trigger: 'axis', 
                showDelay: 0, 
                backgroundColor: 'rgba(0,0,0,0.55)',
                padding: [10,70], 
                formatter : '{b}年<br/>满意度 : {c}%',
                axisPointer: { 
                    type: 'line', 
                    lineStyle: { 
                        color: '#dddddd',
                        width: 1,
                        type: 'dashed'
                    },
                },
                textStyle: {
                    color: '#fff'
                }
            },
举报

相关推荐

0 条评论