Highcharts柱形图追溯 [英] Highcharts Column Chart Drilldown

查看:131
本文介绍了Highcharts柱形图追溯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以为Highcharts包的柱状图提供向下钻取功能的例子吗?这里是来自Highcharts网站的示例jsfiddle,但它是静态数据。 http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-drilldown/



如何使它动态?即使我实现了点击功能,如何知道哪个列被点击?如何使用下钻数据刷新同一图表?我有复杂的XML,我转换为一个对象数组。因此准备向下钻取数据不是问题。但我需要将这些数据传递给图表的指导。任何帮助都感激不尽。感谢。

解决方案

以下是你必须做的一个例子。

http://jsfiddle.net/yPVX9/2/



我使用了与链接上相同的代码。



希望这对您有所帮助:)


Can anybody give an example of drill down functionality for column charts of Highcharts package? Here is the jsfiddle of the example from the Highcharts website but it is with static data. http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-drilldown/

How to make it dynamic? Even if I implement the click function, how to know which column was clicked? How to refresh the same chart with drilldown data? I have complex XML which I converted to an array of objects. So preparing drilldown data is not a problem. But I need guidance on passing this data to the chart. Any help will be much appreciated. Thanks.

解决方案

Here is an example of what you have to do.

http://jsfiddle.net/yPVX9/2/

I used the same code that you gave on the link.

Hope this help you :)

这篇关于Highcharts柱形图追溯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆