[CLOSED] Passing PolarChart Id to Tip Render Function

  1. #1

    [CLOSED] Passing PolarChart Id to Tip Render Function

    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') + " )");
        },


    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]
  2. #2
    Hi @rguardado,

    Please try with item.series.getChart().

Similar Threads

  1. Passing Pie Chart Id to Tip Render Function
    By iomega55 in forum 2.x Help
    Replies: 1
    Last Post: Oct 14, 2014, 2:01 PM
  2. Replies: 0
    Last Post: Aug 23, 2013, 11:16 AM
  3. [CLOSED] Passing function result as value of a parameter
    By RCN in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 13, 2012, 11:43 AM
  4. [CLOSED] passing ext.net controls to controller function
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 16, 2012, 12:55 PM
  5. Replies: 3
    Last Post: Aug 21, 2010, 5:26 AM

Posting Permissions