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

  • Home
  • SEARCH
  • 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 8813749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:56:14+00:00 2026-06-14T03:56:14+00:00

Highcharts, Can you change the chart type for drilldowns? I would like to present

  • 0

Highcharts, Can you change the chart type for drilldowns?

I would like to present a standard “column” chart initially and then drilldown to a “bar” chart, I have tried everything I could think of….

I assumed it would be set in the drilldown code, but doesnt seem to work this way.
As in…

drilldown: {
    type: 'pie',
    name: 'Chart1',
    categories ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28'],
    data: [1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8],
    color: colors[0]
}
  • 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-14T03:56:15+00:00Added an answer on June 14, 2026 at 3:56 am

    I don’t know what have you tried, but you can do it.
    Take a look my example.

    $(function () {
        var chart;
        $(document).ready(function() {
    
            var colors = Highcharts.getOptions().colors,
                categories = ['MSIE', 'Firefox', 'Chrome', 'Safari', 'Opera'],
                name = 'Browser brands',
                data = [{
                        y: 55.11,
                        color: colors[0],
                        drilldown: {
                            name: 'MSIE versions',
                            categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
                            data: [10.85, 7.35, 33.06, 2.81],
                            color: colors[0]
                        }
                    }, {
                        y: 21.63,
                        color: colors[1],
                        drilldown: {
                            name: 'Firefox versions',
                            categories: ['Firefox 2.0', 'Firefox 3.0', 'Firefox 3.5', 'Firefox 3.6', 'Firefox 4.0'],
                            data: [0.20, 0.83, 1.58, 13.12, 5.43],
                            color: colors[1]
                        }
                    }, {
                        y: 11.94,
                        color: colors[2],
                        drilldown: {
                            name: 'Chrome versions',
                            categories: ['Chrome 5.0', 'Chrome 6.0', 'Chrome 7.0', 'Chrome 8.0', 'Chrome 9.0',
                                'Chrome 10.0', 'Chrome 11.0', 'Chrome 12.0'],
                            data: [0.12, 0.19, 0.12, 0.36, 0.32, 9.91, 0.50, 0.22],
                            color: colors[2]
                        }
                    }, {
                        y: 7.15,
                        color: colors[3],
                        drilldown: {
                            name: 'Safari versions',
                            categories: ['Safari 5.0', 'Safari 4.0', 'Safari Win 5.0', 'Safari 4.1', 'Safari/Maxthon',
                                'Safari 3.1', 'Safari 4.1'],
                            data: [4.55, 1.42, 0.23, 0.21, 0.20, 0.19, 0.14],
                            color: colors[3]
                        }
                    }, {
                        y: 2.14,
                        color: colors[4],
                        drilldown: {
                            name: 'Opera versions',
                            categories: ['Opera 9.x', 'Opera 10.x', 'Opera 11.x'],
                            data: [ 0.12, 0.37, 1.65],
                            color: colors[4]
                        }
                    }];
    
            function setChart(options) {
                chart.series[0].remove(false);
                chart.addSeries({
                    type: options.type,
                    name: options.name,
                    data: options.data,
                    color: options.color || 'white'
                }, false);
                chart.xAxis[0].setCategories(options.categories, false);
                chart.redraw();
            }
    
            chart = new Highcharts.Chart({
                chart: {
                    renderTo: 'container'
                },
                title: {
                    text: 'Browser market share, April, 2011'
                },
                subtitle: {
                    text: 'Click the columns to view versions. Click again to view brands.'
                },
                xAxis: {
                    categories: categories
                },
                yAxis: {
                    title: {
                        text: 'Total percent market share'
                    }
                },
                plotOptions: {
                    series: {
                        cursor: 'pointer',
                        point: {
                            events: {
                                click: function() {
                                    var drilldown = this.drilldown;
                                    var options;
                                    if (drilldown) { // drill down
                                        options = {
                                            'name': drilldown.name,
                                            'categories': drilldown.categories,
                                            'data': drilldown.data,
                                            'color': drilldown.color,
                                            'type': 'pie'
                                        };
                                    } else { // restore
                                        options = {
                                            'name': name,
                                            'categories': categories,
                                            'data': data,
                                            'type': 'column'
                                        };
                                    }
                                    setChart(options);
                                }
                            }
                        },
                        dataLabels: {
                            enabled: true,
                            color: colors[0],
                            style: {
                                fontWeight: 'bold'
                            },
                            formatter: function() {
                                return this.y +'%';
                            }
                        }
                    }
                },
                tooltip: {
                    formatter: function() {
                        var point = this.point,
                            s = this.x +':<b>'+ this.y +'% market share</b><br/>';
                        if (point.drilldown) {
                            s += 'Click to view '+ point.category +' versions';
                        } else {
                            s += 'Click to return to browser brands';
                        }
                        return s;
                    }
                },
                series: [{
                    type: 'column',
                    name: name,
                    data: data,
                    color: 'white'
                }],
                exporting: {
                    enabled: false
                }
            });
        });
    
    });
    

    Make sure you don’t have a type defined for all your series. Reference

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

Sidebar

Related Questions

I want to know if you can change how a highcharts.js chart is rendered.
Using highcharts, how would I put a default grey bar under my column charts,
I have horizontal bar chart with Highcharts . How can I make each bar
Can the cross-hairs for Highcharts show on top of the area chart instead of
I am using HighCharts Javascript library for a web application and would like to
What i need is exactly with this following chart. http://www.highcharts.com/demo/column-stacked But unfortunately it is
How can I change the unit at y axis dynamically at Highcharts? I have
I am using Highcharts graph to display a pie chart. I want to change
Recently I posted a question on Highcharts column charts drilldown. I have found that
is there anyone have tried to use highcharts jquery with stacked bar like this

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.