Remove (SUM) from pivot table

Hi is it possiable to remove the text (SUM) from a label with pivot table?

Hi,

You can customize header text as follows:

view: "pivot",
on:{
    onHeaderInit: function(header){
        for(i=0; i < header.length; i++){
            var h = header[i].header;
            h[h.length-1].text = h[h.length-1].text.replace(" (sum)","");
        }
    }
},
...

Hi
I have added
view:“pivot-chart”,
on:{
onHeaderInit: function(header){
for(i=0; i < header.length; i++){
var h = header[i].header;
h[h.length-1].text = h[h.length-1].text.replace(" (sum)","");
}
}
},
id:“pivot”,

but it does not remove the word sum.

OOH Bookings ( sum)
any ideas many thanks

Hi,

PivotChart does not have onHeaderInit event. Please try seriesTitle template:

$$("pivot").templates.seriesTitle= function(data){
    return data.name;
};