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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:27:56+00:00 2026-06-03T08:27:56+00:00

I am creating a Bar Chart: final JFreeChart result = ChartFactory.createBarChart(TITLE, // chart title

  • 0

I am creating a Bar Chart:

final JFreeChart result = ChartFactory.createBarChart(TITLE, // chart title
    X_TITLE, // domain axis label
    Y_TITLE, // range axis label
    dataset, // data
    PlotOrientation.HORIZONTAL, // the plot orientation
    true, // legend
    true, // tooltips
    false // urls
    );

I then added a ChartMouseListener as described here.

When I click on a legend item, “LegendItemEntity: seriesKey=null, dataset=null” is displayed.

How do I access the legend text for the corresponding item?

  • 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-03T08:27:57+00:00Added an answer on June 3, 2026 at 8:27 am

    Starting from org.jfree.chart.demo.BarChartDemo1 and adding the same ChartMouseListener to the source yields results like this:

    LegendItemEntity: seriesKey=First, dataset=org.jfree.data.category.DefaultCategoryDataset@d9510071
    LegendItemEntity: seriesKey=Second, dataset=org.jfree.data.category.DefaultCategoryDataset@d9510071
    LegendItemEntity: seriesKey=Third, dataset=org.jfree.data.category.DefaultCategoryDataset@d9510071
    

    If you’re geting a different result, an sscce may help.

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

Sidebar

Related Questions

I'm creating a stacked bar chart just like this one . Notice that the
I have stumbled accross the following snippet, for creating horizontal bar chart using matplotlib:
I am creating a horizontal bar chart with html/css/php. The first value is supposed
I'm creating a bar chart with matplotlib-0.91 (for the first time) but the y
Here is a google bar chart I am creating: http://jsfiddle.net/nGvdB/ I read up on
I'm trying to add data (floats specifically) to a bar chart I'm creating with
I am creating a stacked bar chart using jQuery a bunch of DIVs. The
I am creating a standard jQuery UI tab bar, nothing special except for the
I am using shellLibrary and creating a custom desktop task bar. When I try
Let's say I'm creating a table foo with a column bar that should be

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.