0

whitebox

The sun withboard box. May i ask that how to append the data and display after search engine. Thankyou.

ZT Chuah
  • 9
  • 6

1 Answers1

0

The way to insert the additional data into tooltip:

Declare formatter
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"
}

The output will be like this:
==============================

Additional Data
xxxxx
==============================

ZT Chuah
  • 9
  • 6