当前位置:网站首页>Stacked bar graph move the mouse into the tooltip to prompt that the filter is 0 element, so as to realize custom bubbles
Stacked bar graph move the mouse into the tooltip to prompt that the filter is 0 element, so as to realize custom bubbles
2022-06-10 20:38:00 【Rulyc】
The specific implementation effect diagram is as follows :

It looks fresher .
The implementation code is as follows :
tooltip: {
trigger: 'axis',
axisPointer: {
// Axis indicator , Axis trigger is valid
type: 'shadow' // The default is line , Optional :'line' | 'shadow'
},
formatter: function (params) {
var res = `${
params[0].name} <br/>`
for (let item of params) {
if(item.value != 0){
res +=`<span style="background: ${
item.color}; height:10px; width: 10px; border-radius: 50%;display: inline-block;margin-right:10px;"></span> ${
item.seriesName} :${
item.value}h<br/>`
}
}
return res
}
},
Why is a label with inline styles added here ?
The reason is that the colored dots in front of each item are missing , Need to use html+css Draw a
边栏推荐
- PDU会话流程
- mixin--混入
- RuntimeError: Attempting to deserialize object on CUDA device 1 but torch.cuda.device_count() is 1.
- Solve the problem that the idea automatically becomes * when there are more than 5 identical packages
- Does Seata still not support sqlserver?
- mysql基础篇之mysql在已有表中添加自动增加的主键(或任意一个字段)
- Key points of lldp protocol preparation
- ResourceNotFoundException : Unable to find resource
- 一个10年左右的老程序员说:简单CRUD功能进入无码开发时代1 之 增删改查接口信息
- The most common habits from more than 200 English papers written by gradua
猜你喜欢

AttributeError: module ‘collections‘ has no attribute ‘MutableMapping‘

如何使用物联网低代码平台进行工作表管理?

「Bug」问题分析 RuntimeError:which is output 0 of ReluBackward0

PDF. JS - - - - JS analyse le fichier PDF pour réaliser l'aperçu et obtenir le contenu du fichier PDF (sous forme de tableau)

Hm3416h buck IC chip pwm/pfm controls DC-DC buck converter

国庆期间给大家推荐一个可能会成为2019最佳的CRUD工具

Fs2117 boost IC output 5v2.4a synchronous rectification

解决idea超过5个相同包的时候自动变成*的问题

Mysql database foundation

8.4v dual lithium battery professional charging IC (fs4062a)
随机推荐
nodejs: 官方文档3 dgram Stream
自定义日期组件,左右按钮控制向前或向后翻年、翻月、翻周、翻日
安全隐患?意义有限?挡不住真煮迷你厨具火爆618
MySQL数据库基础
如何使用物联网低代码平台进行工作表管理?
腾讯云数据库TDSQL-大咖论道 | 基础软件的过去、现在、未来
hidden danger? Limited meaning? Can't stop the real cooking Mini kitchenware hot 618
[enter textbook latex record]
Kp522201a adopts SOT23-6 encapsulated 4.5V to 17V input, 2A output, 600kHz synchronous step-down converter
Redis集群形式--哨兵模式集群和高可用模式集群---Redis学习笔记003
软件定义边界(SDP)
ResourceNotFoundException : Unable to find resource
Tencent cloud database tdsql- a big guy talks about the past, present and future of basic software
移动端渲染原理浅析
割舍绳子/整数分割
中国工科研究生200多篇英文论文中最常见的习惯(The Most Common Habits from more than 200 English Papers written by Gradua)
How to use the low code platform of the Internet of things for worksheet management?
[Legendre] polynomial
Zabbix_ Monitoring ssh/crond Service - wechat alarm
4.35v lithium battery charging IC