Home > Back-end >  Tooltip echarts map display multiple sets of data error problem
Tooltip echarts map display multiple sets of data error problem

Time:12-17

I want to look at the incoming data=https://bbs.csdn.net/topics/{name: XXX, value1: XXX, value2: yyy}
Shown on the map in the fill color is according to value1, but shows the value1 and value2


Code:
Tooltip: {
The trigger: 'item',
The formatter: function (params) {
Return the params. Name + ': & lt;/br> '+ params. Value2
}},

Display is undefined, namely params. Value2 has a problem, could you tell me this how to solve the

At the same time, I read online use var myseries=option. The series; I said there is an error, there is no option. The series

Trouble great god help solve, thank you

CodePudding user response:

Params. Value2 is modified to params. Data. Value2 good, I also found this problem today, if only one value value, the direct data. The value can get the value, if more than one value, needs. The data. The value
  • Related