Apr 15, 2015, 5:16 AM
[CLOSED] Center Polarchart in panel
I have 3 questions:
1) How Can I get a center polarchart inside a panel?
2) How Can I modify the lengendconfig font label?
3) In the basic polarchart sample you have this in the javascript for render the tooltip:
1) How Can I get a center polarchart inside a panel?
2) How Can I modify the lengendconfig font label?
3) In the basic polarchart sample you have this in the javascript for render the tooltip:
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') + " )");
},
Last edited by Daniil; Apr 21, 2015 at 1:47 PM.
Reason: [CLOSED]