Jump to content

nandrianakis

uniGUI Subscriber
  • Posts

    26
  • Joined

  • Last visited

Posts posted by nandrianakis

  1. I am using to  display tooltip this:

    function chart.beforeInit(sender, config)
    {
     config.series[0].tooltip = 
      {
            trackMouse: true,
            width: 120,
            renderer: function(tip, item) 
            {
                tip.setTitle(item.get('LL'));
                tip.update('<b>' + Ext.util.Format.number(item.get('A').toFixed(2),'0,000.00')+'</b>');
            }
      }
    }
    

    I need also to show the percent

    for example

    if the title is 2015 and value is 10000 and that is 25% of the total 

    Display something like this

    2015

    10,0000.00(25%)

  2. In your code

    renderer: function(tip, item) {
                tip.setTitle(item.get('LL'));
                tip.update('Αγορές: ' + item.get('B'));
            }

    the parameter item has the get method with parameter 'LL' 'A' etc.

    What other options there are for this parameter?

  3. Good morning

    I need to display, client side,  label, value, percent as tooltip on a pie chart 

    Also on chart with 2 line series on mouseover on marker

    Any idea how can i do this?

    Rgs

    NA.

  4. Good morning

     

    Sorry its not so easy

     

    I found that

     

    If I will try to open the dataset oncreate event of the form it is ok

     

    If  I place a button and open the dataset onclick event of the button is not working
  5. Yes 

     

     

    This fn

     

    function viewready(sender, eOpts)

    {

     

      sender.getColumns()[0].renderer = function (value, metadata, record ) 

      {    

        myToolTipText = "<table class='tblRecGridRowToolTip'>";

        

        for (i=0;i< sender.getColumns().length;i++)            

        {

           myToolTipText=myToolTipText+"<tr class='tdToolTip'>"+

                          "<td class='tblRecGridRowToolTipTitle'><b>"+sender.getColumns().text+": </b></td>"+

                          "<td class='tblRecGridRowToolTipValue'>"+record.get(i)+"</td>"+

                         "</tr>";   

        }     

        myToolTipText=myToolTipText+ "</table>"; 

        metadata.tdAttr = 'data-qclass="dvQtip" data-qtip="' + myToolTipText + '"';

       

        return value;

      };

      

      sender.getView().refresh();   

     

    }

      


    It not works for some grids even for some records on the same grid

    Any idea?

  6. function viewready(sender, eOpts)

    {  

      sender.getColumns()[0].renderer = function (value, metadata, record ) 

      {    

        myToolTipText = "<table class='tblRecGridRowToolTip'>";

        for (i=0;i< sender.getColumns().length;i++)            

        {

           myToolTipText=myToolTipText+"<tr class='tdToolTip'>"+

                          "<td class='tblRecGridRowToolTipTitle'><b>HEADER</b></td>"+

                          "<td class='tblRecGridRowToolTipValue'>"+record.get(i)+"</td>"+

                         "</tr>";   

        }     

        myToolTipText=myToolTipText+ "</table>"; 

        metadata.tdAttr = 'data-qclass="dvQtip" data-qtip="' + myToolTipText + '"';

        alert(myToolTipText); 

        return value;

      };  

      sender.getView().refresh();      

    }

     

    I want to replace the word HEADER with columns header

    Rgs

×
×
  • Create New...