Javascript 为什么我不能从一列钻到另一列?

Javascript 为什么我不能从一列钻到另一列?,javascript,highcharts,Javascript,Highcharts,Highcharts有一个可爱的图表演示。但如果我尝试切换,使其使用条而不是馅饼,我得到的是,而不是列,然后是条: $(function () { // Create the chart $('#container').highcharts({ chart: { type: 'bar' //change this to "pie" and it works just fine. }, series: [{ name: 'Things',

Highcharts有一个可爱的图表演示。但如果我尝试切换,使其使用条而不是馅饼,我得到的是,而不是列,然后是条:

$(function () {

// Create the chart
$('#container').highcharts({
    chart: {
        type: 'bar' //change this to "pie" and it works just fine. 
    },
    series: [{
        name: 'Things',
        data: [{
            name: 'Animals',
            y: 5,
            drilldown: 'animals'
        }, {
            name: 'Fruits',
            y: 2,
            drilldown: 'fruits'
        }, {
            name: 'Cars',
            y: 4,
            drilldown: 'cars'
        }],
        type: 'column'
    }],
    drilldown: {
        series: [{
            id: 'animals',
            data: [
                ['Cats', 4],
                ['Dogs', 2],
                ['Cows', 1],
                ['Sheep', 2],
                ['Pigs', 1]
            ]
        }, {
            id: 'fruits',
            data: [
                ['Apples', 4],
                ['Oranges', 2]
            ]
        }, {
            id: 'cars',
            data: [
                ['Toyota', 4],
                ['Opel', 2],
                ['Volkswagen', 2]
            ]
        }]
    }
}) });

当我向下搜索时,是否可以从列切换到条形图?

我认为这接近于您要查找的内容。您无法在倒排图表之间切换,因此您需要销毁并创建新图表。@Andrewsellernrick这基本上就是我所拥有的。我可以深入到一个饼图很好。但我不能深入到酒吧。