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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:21:54+00:00 2026-06-12T09:21:54+00:00

I want to drill down through column chart in highcharts. I have a 3

  • 0

I want to drill down through column chart in highcharts. I have a 3 level drill down with each having at least 20 x-axis labels.Right now drill down is working for column click. I want to do the same thing on x axis click.

Based on my research i found this probable solution. What I want to achieve can be seen here on clicking x-axis labels.

The function i used to achieve this functionality

function(chart) {

   //console.log(chart.xAxis[0].ticks[0]);
   $.each(chart.xAxis[0].ticks, function(i, tick) {
       tick.label.on('click', function() {
           var drilldown = chart.series[0].data[i].drilldown;
           if (drilldown) { // drill down
               chart.setTitle({
                   text: drilldown.name
               });
               setChart(drilldown.name, drilldown.categories, drilldown.data, drilldown.color, drilldown.level , drilldown.ytitle);

           } else { // restore
               setChart(name, categories, data, null, level , 'Total Agent score');
               chart.setTitle({text: "Agent Performance Drill Down Report"});

               chart.setTitle(undefined, { text: 'Click the Columns to view Drill Down Reports.' });
           }
       });
   });

}

The problem: It works with most of the x-labels but not all. This can be seen @ this fiddle the label drill down does not work at all 3 levels on all labels.

Also, here is the post I made on highchart forum for reference

  • 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-12T09:21:54+00:00Added an answer on June 12, 2026 at 9:21 am

    You are adding the handlers at chart load, some of the axis labels won’t be present at that time, hence those labels won’t respond to the click event

    As a quick (read dirty) fix you can add the same handler that you have for the load to the redraw, so the new labels that are created will bind to it.

    You can bind the same function to the redraw (this happens when the x-axis labels are changed too, you can replace with a less frequent event that suits the need too) event, so every time the chart is redrawn you unbind (since I am unsure of the lifetime of the labels in highchart, if an exisiting label is reused for the new drilled down chart, it would be safer to remove) any existing click handler as follows for each tick

     $(tick.label.element).unbind('click');
    

    and then add the click handler

    var bindAxisClick = function() {
        $.each(this.xAxis[0].ticks, function(i, tick) {
            $(tick.label.element).unbind('click');
            $(tick.label.element).click(function() {
                var drilldown = chart.series[0].data[i].drilldown;
                if (drilldown) { // drill down
                    chart.setTitle({
                        text: drilldown.name
                    });
                    setChart(drilldown.name, drilldown.categories, drilldown.data, drilldown.color, drilldown.level, drilldown.ytitle);
    
                } else { // restore
                    setChart(name, categories, data, null, level, 'Total score');
                    chart.setTitle({
                        text: "Drill Down Report"
                    });
    
                    chart.setTitle(undefined, {
                        text: 'Click the Columns to view Drill Down Reports.'
                    });
                }
            });
        });
    };
    

    Modify the chart options to add the redraw and load handlers

    chart :{
        ...
        events: {
                redraw: bindAxisClick ,
                load:bindAxisClick 
        },
        ...
     }
    

    Dril down from x-axis labels @ jsFiddle

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

Sidebar

Related Questions

I have a drill down navigation app with three levels of UIViewControllers. In each
I basically just want to do ack foo *.citrus and have ack drill down
I am trying to implement 3 LEVEL Column drill down report. I'm showing scores
I have a search form (running MySQL 5.0.88 ) to drill down through a
I have managed to drill down to the element that I want. Here is
I have a chart. And I allow Drill up and Drill down option. I
In a template, I want to drill down the template parameter to the real
I have a Sectioned Tableview sourced from a pList which I want to drill
I have a split view controller for iPad with a drill-down table on the
I have a split view controller for iPad with a drill-down table on the

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.