The sun withboard box. May i ask that how to append the data and display after search engine. Thankyou.
Asked
Active
Viewed 145 times
0
-
Yes, https://stackoverflow.com/questions/64442517/echarts-show-additional-info-in-tooltip/64456091 – Sergey Fedorov Feb 21 '21 at 21:51
-
Thanks for info. I already find another way to do what i want. – ZT Chuah Feb 22 '21 at 05:01
-
It's the same way. – Sergey Fedorov Feb 22 '21 at 07:25
1 Answers
0
The way to insert the additional data into tooltip:
Declare formatterformatter: 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"
}
The output will be like this:
==============================
Additional Data
xxxxx
==============================

ZT Chuah
- 9
- 6