简体   繁体   English

Highcharts显示向下钻取图表到不同的容器?

[英]Highcharts to show drill down charts to different container?

I have a sales data, that need to be drill-down to N level, in different container. 我有一个销售数据,需要在不同的容器中向下钻取到N级。

for example: first chart will be showing country wise sales, clicking on a country it drill down to state wise chart in different container, not overlapping the first chart... clicking on the state further drill down to district wise sales on different part. 例如:第一个图表将显示按国家/地区划分的销售情况,单击要向下钻取的国家/地区在不同容器中的州/直辖市镇,而不与第一个图表重叠...单击该州/直辖市/直辖市/直辖市/自治区,直辖市。

Please help me.. struggle a lot to create one like this 请帮助我..努力创建这样的一个

Drilldown is based on appropriate series figure, so if you prepare many levels of data point you can have any level of deep : 向下钻取基于适当的序列图,因此,如果准备许多级别的数据点,则可以具有任意级别的深入信息:

http://jsfiddle.net/2tjPp/ http://jsfiddle.net/2tjPp/

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: [{
                        y: 10.85,
                        drilldown: {
                            name: 'MSIE versions',
                            categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
                            data: [4,3,2,1],
                            color: colors[0]
                        }
                    },
                    7.35, 33.06, 2.81],
                    color: colors[0]
                }
            }]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM