Thank you harikm007.
I can't see to get this to work on the pie chart. I modified the code to match my data and category name but can't see to get it to work on my pie chart widget:
newItemMapping = { '0':'no scanback',
'1':'scanback'
}
widget.on("queryend", function(se, ev){
var panelName = 'scanback_uploaded' //Items in this panel will be replaced with new items
panelIndex = ev.rawResult.headers.indexOf(panelName)
$.each(ev.rawResult.values, function(index, value){
if(newItemMapping[value[panelIndex].text] != undefined)
{
value[panelIndex].data = newItemMapping[value[panelIndex].data]
value[panelIndex].text = newItemMapping[value[panelIndex].text]
}
})
})