echarts tooltip样式设置

tech2022-10-20  104

tooltip: {

                    trigger: "axis",

                    axisPointer: {

                        type: "shadow",//背景色

                        shadowStyle: {

                            color: "rgba(0,246,255,0.1)"//背景色设置

                        }

                    },

//提示框样式调整

                    extraCssText: 'width:200px;height:80px;line-height:30px;background:rgba(0,0,0,0.5);font-size:18px;padding:10px 0;text-align:center;'

                },

例子如图:

最新回复(0)