[CLOSED] Center Polarchart in panel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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?

    Click image for larger version. 

Name:	polarchart1.PNG 
Views:	1 
Size:	10.0 KB 
ID:	23821

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

    1) How Can I get a center polarchart inside a panel?
    I am not sure what you mean. Please elaborate. Do you mean center alignment of a PolarChart inside a Panel? If so, you probably should set Layout="FitLayout" for the Panel.

    2-3. Please keep one issue per thread. You are welcome to start a new thread for each.
    Last edited by Daniil; Apr 15, 2015 at 6:58 PM.

Similar Threads

  1. Replies: 2
    Last Post: Aug 30, 2013, 2:49 PM
  2. Replies: 2
    Last Post: Nov 09, 2012, 4:32 PM
  3. Replies: 1
    Last Post: Oct 26, 2012, 8:52 AM
  4. Center a panel inside another panel
    By PAOLO in forum 1.x Help
    Replies: 0
    Last Post: Oct 03, 2011, 3:44 PM
  5. Replies: 3
    Last Post: Sep 13, 2008, 10:09 AM

Tags for this Thread

Posting Permissions