Results 1 to 2 of 2

Thread: ExtJS 6.0.0 Documentation bug - Ext.chart.series.Series.tooltip

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18700 in 6.0.1.
  1. #1
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    124

    Default ExtJS 6.0.0 Documentation bug - Ext.chart.series.Series.tooltip

    The example for the Ext.chart.series.Series tooltip config property is incorrect. It specifies a 'renderer' function used to render the tooltip:


    Code:
    tooltip:{ 
      trackMouse:true,
      width:140,
      height:28, 
      renderer:function(storeItem, item){
        this.setHtml(storeItem.get('name')+': '+ storeItem.get('data1')+' views');
      }
    }


    This is incorrect. The renderer function - which is not part of the Ext.tip.ToolTip's properties - is called with the arguments of the tooltip, then the storeItem, and the item. It's also called in the context of the 'scope' property defined on the tooltip object (again, not one of the Ext.tip.ToolTip's properties).

    A more accurate example would be:

    Code:
    tooltip:{ 
      trackMouse:true, 
      width:140, 
      height:28, 
      scope: this, 
      renderer:function(toolTip, storeItem, item){
        toolTip.setHtml(storeItem.get('name')+': '+ storeItem.get('data1')+' views');
      }
    }

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    462

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 3
    Last Post: 20 Jan 2012, 12:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •