可以将数据添加到条形图中鼠标悬停时出现的电子图形框中



白盒

阳光配电箱。我想问一下如何在搜索引擎后添加数据并显示。谢谢。

将附加数据插入工具提示的方法:

声明格式化程序
formatter: function (params) { //params can get the data needed like series name
//params is to get the corresponding data that belong to the pointer
// var index_ds = params[0].dataIndex (Can use this code to get the index of dataset which is the index where the data come from)
//Declare a variable to display the data
let additional = "Additional Data"
//If want add a new line just like 
additional += "xxxxx"
}

输出如下:
================

其他数据
xxxxx
=========

最新更新