[英]Javascript library for clickable bar chart?
I need a Javascript charting tool to build a bar chart that allows me to click on a chart bar and get another chart (in a popup or below the first chart). 我需要一个Javascript图表工具来构建一个条形图,允许我点击图表栏并获得另一个图表(在弹出窗口或第一个图表下方)。 What I need is a bar chart that fires an event giving me some kind of id of the column that has been clicked. 我需要的是一个条形图,它触发一个事件,给我一些被点击的列的id。
Dettails Dettails
The data for the first chart should be loaded with ajax when the page loads and the data for the second chart should be loaded when you click on one of the columns. 第一个图表的数据应该在页面加载时加载ajax,并且当您单击其中一个列时应加载第二个图表的数据。
an example: A graph with one bar for March and one bar for April, when you click on the March bar you get a second graph (below or in a pop up) with two bars: one for the 12/03/2011 and the other for the 23/03/2011. 一个例子:三月一个条形图和四月一个条形图形图形,当你点击三月形条形图时,你得到第二个图形(下面或弹出窗口中)有两个条形图:一个用于12/03/2011和其他为23/03/2011。
Total expenses: March 1200 April 300 总费用:3月1200日4月300日
Total expenses for March: 12/03/2011 1000 23/03/2011 200 3月总费用:12/03/2011 1000 23/03/2011 200
Total expenses for April: 16/04/2011 10 21/04/2011 290 4月总费用:16/04/2011 10 21/04/2011 290
Highcharts允许为单个点或整个系列定制“点击”处理程序。
Checkout http://www.jqplot.com/ 结帐http://www.jqplot.com/
It doesn't do all that you need out of the box, but if you extend the Cursor class I think you can get the functionality you've been looking for. 它并不是你需要的所有东西,但是如果扩展Cursor类,我认为你可以获得你一直在寻找的功能。
http://www.jqplot.com/docs/files/plugins/jqplot-cursor-js.html# $.jqplot.Cursor http://www.jqplot.com/docs/files/plugins/jqplot-cursor-js.html# $ .jqplot.Cursor
请参阅gRaphaël - 可在Firefox,Safari,Chrome,Opera甚至Internet Explorer 6+中使用的可缩放矢量图。
Flotr2是一个实质上增强的Flot分支。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.