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 7795303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:02:25+00:00 2026-06-01T23:02:25+00:00

I have a bar chart with the vertical axis this way <mx:verticalAxis > <mx:CategoryAxis

  • 0

I have a bar chart with the vertical axis this way

<mx:verticalAxis >
    <mx:CategoryAxis id="catAxis" title="Employee"  categoryField="id"/>
</mx:verticalAxis>

I would for the labels on the vertical axis to be clickable. So when a user clicks a label a click event fires and I can do something with it. I am not interested in clicking the bar itself (I know how to achieve that)

I tried adding an event listener to the CategoryAxis of type Mouse.Click but nothing gets fired.

Any help is appreciated.

  • 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-01T23:02:26+00:00Added an answer on June 1, 2026 at 11:02 pm

    OK, I got it to work. I will post the answer so that others with a similar requirement can benefit. So, Timofei Davydik helped me look in the right direction. I have created an ActionScript class named MyLabelRenderer that extends ChartLabel. Inside its constructor, I added all my event listeners such as the mouse click event that I needed.

    This was the tricky part. Thank you KB (a friend) for providing the correct instantiation. In the main application where my chart is I have to instantiate an instance of my new class MyLabelRenderer this way:

    private var myLabelRenderer:ClassFactory = new ClassFactory(MyLabelRenderer);
    

    Then you can assign it to the AxisRenderer object this way:

    <mx:verticalAxisRenderers>
        <mx:AxisRenderer axis="{catAxis}" labelRenderer="{myLabelRenderer}"/>
    </mx:verticalAxisRenderers>
    

    good luck…

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

Sidebar

Related Questions

Currently i have made a bar chart from a listbox from this example: http://weblogs.thinktecture.com/cnagel/2011/06/wpf-listbox-as-bar-chart.html
Currently I have a stacked bar chart like this ( jsfiddle demo ) I
Is it possible to restrict flex bar chart y-axis count? I have a very
I have dojo bar chart. Onmouseover the bar i would like a hand cursor.
I have a bar chart which shows different categories on the Y axis. I
I'm making a website and I have this HTML for a bar chart: <div
So I've made this range bar chart with the MS Chart Control. I have
So I've made this range bar chart with the MS Chart Control. I have
Can anyone think of a way to have a horizontal bar chart / progress
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or

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.