Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8145405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:39:10+00:00 2026-06-06T13:39:10+00:00

I am creating a radar chart to display data and it works just fine.

  • 0

I am creating a radar chart to display data and it works just fine. However, the title(s) that appear in the legend can be extremely long. Right now I have it showing a shortened version of the title in the legend, but I would like it so when the user does a mouseover on a legend title, a tooltip or some time of bubble pops up that shows the full title/label. From what I see in the API docs, I can see you can add a listener to the entire chart, but not just on the legend titles.

You can however click on a legend item to make the data show/hide, so there is some type of listening functionality. Any ideas how I can add a custom mouseover listener to the legend of the following radar chart?

Ext.define("COM.view.portlet.RadarChart", {
extend  : "Ext.panel.Panel",
alias   : "widget.myradarchart",
requires: ["Ext.chart.theme.Base", "Ext.chart.series.Series"],

initComponent: function () {
    //@fixme: Why is the first radar not show x-axis lines?
    Ext.apply(this, {
        layout: "fit",
        width: 600,
        height: 300,
        items: {
            xtype: 'chart',
            style: 'background:#fff',
            theme: 'Category2',
            insetPadding: 20,
            animate: true,
            store: 'Seoradar',
            legend: {
                position: "bottom"
                //ADDING LISTENERS HERE DOESN'T WORK
            },
            axes: [{
                type: "Radial",
                position: "radial",
                maximum: 100,
                label: {
                    font: "11px Arial",
                    display : "none"
                }
            }],
            series: [{
                showInLegend    : true,
                showMarkers     : true,
                markerConfig: {
                    radius  : 2,
                    size    : 2
                },
                type    : 'radar',
                xField  : 'name',
                yField  : 'site0',
                style: {
                    opacity: 0.4
                }
            },{
                showInLegend    : true,
                showMarkers     : true,
                type            : 'radar',
                xField          : 'name',
                yField          : 'site1',
                style: {
                    opacity: 0.4
                }
            }]
        }
    });
    this.callParent(arguments);
}

});

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:39:11+00:00Added an answer on June 6, 2026 at 1:39 pm

    If you want to get this event out of the Chart you can push it up from the series
    to the chart by saying:

           {
                'type' : 'line',
                'axis' : 'left',
                'highlight' : true,
                'listeners' : {
                    'itemmousedown' : function(event){
                        event.series.chart.fireEvent('itemmousedown', event);
                    }
                }
           }
    

    so in your controller you can say:

    this.control({
        'chart' : {
             'itemmousedown' : function(event){
                 //do your stuff here
             }
        }
    });
    

    !!ATTENTION!!

    I noticed that those mousedown events are executed in another contaxt than the UI Context, so i was unable to show a Window in the Context of the Event Handler.
    I had to getr around this by using setTimeout and saving the eventobject somewhere.
    I think maybe this is because on some browser SVG Rendering is Hardware accelerated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Creating my Highchart with preset options works fine: chart = new Highcharts.Chart(options); However, when
Creating MVC3 Razor Helper like Helper.BeginForm() says that it can be done using extension
Creating a relatively simple data entry form, and just want to separate certain sections
Creating a class with variables like this works fine : class Example { public
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a calculator-like dialog, I noticed that quickly clicking on a button in IE
Creating an installer for possible remote systems so that if they do not have
Creating Trial .git -repo $ mkdir Test; cd Test; git init $ echo Just
Creating a Drawable that is completely empty seems like a common need, as a
Creating a ruby on rails site and recently added: <% if (?can :manage, :table)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.