let lineData = []
var obj = {}
var dateList = []
var legendName = []
$.each(pileData.data.table, function (index, item) {
dateList.push(item.dayId)
$.each(item.children, function (index2, item2) {
if (obj[item2.name] === undefined) {
obj[item2.name] = {}
obj[item2.name].name = item2.name
obj[item2.name].data = []
}
obj[item2.name].data.push(item2.ip)
})
})
网友评论