Can we sync 2 highcharts drilldown so that if one

2019-08-01 09:42发布

问题:

Here are two different highcharts with drilldown datas. Can we sync the highcharts so that if the first drilldown 'type1' is clicked, other charts with 'type1' also drilldowns??

$('#drilldown-1').highcharts({
    series: [{
        data: [{
            name: 'type1',
            y: 5,
            drilldown: 'type-1'
    }],
    drilldown: {
        series: [{
            id: 'type-1',
            data: [
                ['type1.1', 4],
                ['type1.2', 2],
                ['type1.3', 1],
                ['type1.4', 2],
                ['type1.5', 1]
            ]
        }]
    }
}]
$('#drilldown-2').highcharts({
    series: [{
        data: [{
            name: 'type1',
            y: 5,
            drilldown: 'type-1'
    }],
    drilldown: {
        series: [{
            id: 'type-1',
            data: [
                ['type1.11', 8],
                ['type1.12', 4],
                ['type1.13', 16],
                ['type1.4', 2],
                ['type1.5', 1]
            ]
        }]
    }
}]

http://jsfiddle.net/nikbaidya0346/o4qmLLbq/5/