Jump to content

uniChart and mouse move


Lena

Recommended Posts

Hi,

 

There is one solution, but for some reason, sometimes not working properly, try ...:

 

UniChart1 -> ClientEvents -> ExtEvents [Ext.chart.Chart] function chart.beforerender

function chart.beforerender(sender, eOpts)
{
  sender.series.items.forEach(function(item){
    item.tips = {
      trackMouse: true,
      //width: 580,
      //height: 170,
      renderer: function(storeItem, item) {                                 
        this.setTitle("" + storeItem.get('LL'));
      }
    }
  })
}

post-906-0-37781300-1442489903_thumb.png

 

source: http://dev.sencha.com/deploy/ext-4.0.1/examples/charts/TipsChart.html

 

Best regards.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

Try:

function chart.beforerender(sender, eOpts)
{
  sender.series.items.forEach(function(item){     
    item.tips = {
      trackMouse: true,
      //width: 580,
      //height: 170,
      renderer: function(storeItem, item) {                                 
        this.setTitle("" + storeItem.get('LL'));
        this.update;
        return;     
      },
      listeners: {
        beforeshow: {
          fn: function (tip) {                 
            return tip.layout.owner.title != "";
          }
        }
      }
    }
  })
}

Best regards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...