Results 1 to 2 of 2

Thread: Add Tooltip to Chart Legend

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    100
    Answers
    10

    Default Add Tooltip to Chart Legend

    Hey together,

    I have a Charts (polar, chartesian) and want to add a tooltip to the legend...

    I tried different things, but there is always a bug:

    If I do it like this, the tooltip shows up after each element has been selected (IE11, FF, Chrome):
    Code:
    legend: {                        docked: 'right',
                            scrollable:'vertical',
                            listeners:{
                                itemmouseenter:function( oElem, record, item, index, e, eOpts ){
                                    Ext.create("Ext.tip.ToolTip",{
                                        target:item,
                                      //  autoShow:true,
                                        trackMouse:true,
                                        html:record.data.name,
                                        hideDelay:0,
                                        showDelay:0
                                    });
                                }
                            }
                        },

    If I add a autoShow:true, it comes always, but in the IE11 the Tooltip is shown twice, one correct and one in the left upper corner. Also in the FF the Tooltip is jumping.

    Did just someone tried to make it and did find a good solution?

    Thanks,
    Liz

  2. #2

    Default

    same issue face in my project.

    Any solution Find ?

Similar Threads

  1. Tooltip on chart legend
    By Roland89 in forum Ext 5: Q&A
    Replies: 0
    Last Post: 17 Feb 2015, 8:25 AM
  2. Replies: 4
    Last Post: 4 Mar 2014, 7:09 AM
  3. Replies: 1
    Last Post: 11 Jan 2012, 2:04 PM
  4. Render functions for tooltip and legend on pie chart
    By shizny in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 8 Dec 2010, 4:41 AM

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
  •