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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:30:44+00:00 2026-06-09T10:30:44+00:00

I have a jQplot with the following options: options= { title:Results, legend:{ renderer: $.jqplot.EnhancedLegendRenderer,

  • 0

I have a jQplot with the following options:

options= {
                title:"Results", 
                legend:{
                   renderer: $.jqplot.EnhancedLegendRenderer,
                   show:true,
                   labels:result,
                   rendererOptions:{
                       numberRows:null,
                       numberColumns:4,
                       seriesToggle:"fast",
                       disableIEFading:true
                   },
                   placement: 'outsideGrid',
                   location: 's'
                },
                axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer, tickOptions:{formatString:'%Y-%m-%d %H:%M'}},
                      highlighter: {

                       sizeAdjust: 10,

                       tooltipLocation: 'n',

                       useAxesFormatters: false,

                       formatString: 'Hello %s dayglow %d'

                   }
                },
                   cursor:{ 
                      show: true,
                      zoom:true, 
                      showTooltip:false
                   } };

I would like the highlight to disable when a line is hidden. Currently, if you hover over a datapoint that is invisible the highlighter still shows up. Is there a way to do this?

  • 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-09T10:30:47+00:00Added an answer on June 9, 2026 at 10:30 am

    I’ve managed to find a solution. I’m curently using jqplot version 1.0.0b2_r1012.

    Go to enhancedLegendRenderer.js(take care whether you included that file or .min.js) and fix handleToggle function(line 219) to look like this:

    var handleToggle = function (ev) {
        ev.data.series.toggleDisplay(ev);
        if (ev.data.series.canvas._elem.hasClass('jqplot-series-hidden')) {
            $(this).addClass('jqplot-series-hidden');
            $(this).next('.jqplot-table-legend-label').addClass('jqplot-series-hidden');
            $(this).prev('.jqplot-table-legend-swatch').addClass('jqplot-series-hidden');
            ev.data.series.showHighlight = false;
        }
        else {
            $(this).removeClass('jqplot-series-hidden');
            $(this).next('.jqplot-table-legend-label').removeClass('jqplot-series-hidden');
            $(this).prev('.jqplot-table-legend-swatch').removeClass('jqplot-series-hidden');
            ev.data.series.showHighlight = true;
        }
    };
    

    I’ve added lines:

    ev.data.series.showHighlight = false;
    

    and

    ev.data.series.showHighlight = true;
    

    Caution: This fix is not a long term solution! Next time you update the jqplot, you must also update these lines. Before updating these lines, check weather this bug has been fixed in that jqplot version.

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

Sidebar

Related Questions

I have the following code to bring up a jqplot graph in the head:
I have a controller that generates the following json data: [ { title: Option
I have a jqplot pie chart with a legend and I would like to
I have a jqPlot pie chart that I am loading by reading an XML
I have a simple JSF line chart that uses PrimeFaces (via jqPlot) library: <p:lineChart
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =
I can't seem to get my jqplot bar graph to stack. I have the
I have a jQPlot line graph with three different series on it and am
I am trying to use jqplot http://www.jqplot.com/tests/cursor-highlighter.php . I have successfully installed it in
I have the following codes to render a bar chart and a pie chart.

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.