I've noticed that when the filters change, the extra information vanishes. My script is:
widget.on("beforequery", function (se, ev) {
var newJaql = {
jaql : {
agg:'count', //enable this if you need to display aggreated value
column: "ID", //Column name
datatype: "numeric",
dim: "[Table.ID]", //table + column name
table: "Table", //table name
title: "Volume"
}
}
ev.query.metadata.push(newJaql)
lastIndex = ev.query.metadata.length - 1
})
widget.on("beforedatapointtooltip", function (se, args){
$.each(args.widget.queryResult.$$rows, function(index, value){
value[1].text = value[1].text + ', Loads: ' + value[2].text //replace 'Region' with label you want
})
})
Any thoughts on how to keep the tooltip after filtering?