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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...