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

The Archive Base Latest Questions

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

I have a multi-series column chart with multiple y-axes. The y-axis is set such

  • 0

I have a multi-series column chart with multiple y-axes. The y-axis is set such that only the first yAxis in the array has a gridLineWidth=1. The rest are zero.

What I’m seeing is that if I hide all the series items whose yAxis has a gridLineWidth=1, no gridlines show at all for the remainder of the series items (those that use the non-primary yAxis). This makes sense since I’ve set their gridLineWidth’s to zero…

So in an attempt to always show at least one set of gridlines, I decided to handle the hide and show events on plotOptions.column.events (I also tried legendItemClick) to first set all the gridLineWidth’s to zero, and then look for the first visible series and set the gridLineWidth on it’s yAxis object to 1, like so:

plotOptions: {
    column: {
        ...
        events: {
            show: function (event) {
                var series = this.chart.series;
                var yAxes = this.chart.yAxis;

                // first hide all the gridlines
                _.each(yAxes, function (axis) { axis.gridLineWidth = 0; });
                var firstVisibleSeries = _.find(series, function (ser) { return ser.visible == true; });
                if (firstVisibleSeries != null) {
                    firstVisibleSeries.yAxis.gridLineWidth = 1;
                }
                this.chart.redraw();
            }
        },
    ...
    },
},
...

I’m using Underscore.js for the _.each() and _.find() methods.

Using firebug, everything looks good (meaning the gridLineWidth = 1 for the first visible series item and all others are set to zero at the end of the method execution).

But no matter what I do, including the this.chart.redraw() call I stuck in at the end in desperation, it doesn’t appear to process my changes to the yAxis objects. The gridlines are still missing if I hide all series items that use the first yAxis.

Am I doing something wrong – is there some final step i’m missing to make the changes permanent, or is there a different approach I can take to achieve this goal?

Thanks for your help

EDIT:

Here’s a jsFiddle that presents the issue:
http://jsfiddle.net/kmkuntz/7NEhU/2/

Hiding both ‘money’ type series shows the gridlines disappearing.

  • 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:42:23+00:00Added an answer on June 3, 2026 at 8:42 am

    Thanks to cailie on the highslide forum this is resolved.

    From the post: I needed ‘.options’ after the yAxis call:

    firstVisibleSeries.yAxis.options.gridLineWidth = 1;
    

    the base jsfiddle contains the fix: http://jsfiddle.net/7NEhU/

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

Sidebar

Related Questions

We have multi-website(5) multi-store-view(13) shop. What we need is that only 3 store view
I need to get the last inserted id of table that have multi-column primary
We have multi-part install that needs a reboot to continue. We added a RunOnce
I'm using 'rails3-jquery-autocomplete' gem, but it doesn't have multi column search, but there is
I have a Multi dimension array and what i 'd like to do is
I have a multi-dimensional array of string . I am willing to convert it
i have multi dimensional array like below, Array ( [14289] => Array ( [0]
I have multi-thread application that I want to create a thread with different user
I am looking for an example of a FusionCharts multi-series line chart created using
I am currently building an application that I will host and will have multi-tenants

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.