Apr 16, 2015, 3:33 AM
[CLOSED] Passing PolarChart Id to Tip Render Function
In the basic polarchart sample you have this in the javascript for render the tooltip:
Previously I found this, but it doesnt work in v3.1
http://forums.ext.net/showthread.php...ender-Function
var tipRenderer = function (storeItem, item) {
var total = 0;
App.Chart1.getStore().each(function (rec) { //this is just for Chart1
total += rec.get('Data1');
});
this.setTitle(storeItem.get('Name') + ': ' + Math.round(storeItem.get('Data1') / total * 100) + '%');
};
in the 2.5.3 version I used this code for the tooltip, but in 3.1 I cant get it work: renderT: function (storeItem, item) {
var total = 0;
var c = item.series.chart; //in the past you recommend to use in this way, for a call any chart, not just Chart1
c.getStore().each(function (rec) {
total += rec.get('Valor');
});
this.setTitle(storeItem.get('Estatus') + ': ' + Math.round(storeItem.get('Valor') / total * 100) + '% ( ' + storeItem.get('Valor') + " )");
},
Previously I found this, but it doesnt work in v3.1
http://forums.ext.net/showthread.php...ender-Function
Last edited by Daniil; Apr 28, 2015 at 9:33 AM.
Reason: [CLOSED]