web前端全系列 教程
1839个小节阅读:2244.2k
目录
鸿蒙应用开发
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
在折线图中添加提示框组件,当然提示框也是一个全局配置
xxxxxxxxxx
tooltip:{
show: true,
triggerOn: 'mousemove',
showContent:true,
alwaysShowContent:false,
showDelay:10,
hideDelay:1000,
enterable:true,
renderMode: 'html',
confine:true,
className: 'echarts-tooltip-iwen',
// formatter:"{b0}:{c0}",
formatter:function(params){
console.log(params)
return `<a href='http://itbaizhan.com'><div style='width:100px;height:50px'>${params.name}:${params.value}</div></a>`
},
backgroundColor:"#eee",
borderColor:"green",
borderWidth:0,
padding:0,
extraCssText: 'box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);',
textStyle:{
color:"#f00",
fontSize:18
}
}
实时效果反馈
1. ECharts实现提示框,动态设置提示框样式的属性是:
A className
B renderMode
C extraCssText
D formatter
答案
1=>D