Jump to content

Recommended Posts

Posted

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.

  • 2 weeks later...
Posted

Hi.

If chart empty:

In the new version 1206 when I hover the mouse on the origin I see an empty value. Is it possible removed?

Thanks.

 

post-32-0-76379100-1443598041_thumb.jpg

Posted

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.

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...