如何在asp.net中创建可点击的图表? [英] How to create clickable charts in asp.net?

查看:113
本文介绍了如何在asp.net中创建可点击的图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建允许用户点击特定图表区域的图表, 用户点击特定图表时我想发一些事件,就像我想在用户点击的项目上显示更详细的图表一样。 

我使用过Webchart,MicrosoftChart,但两者都提供了图表作为图像,所以没有可点击的区域有任何替代?

解决方案

免费(javascript包)或付费第三方的数量,如http://demos.telerik.com/aspnet-ajax/chart/examples/overview/defaultcs.aspx [ ^ ]等提供了在ASP.Net中实现图表的功能。


Microsoft Chart控件确实支持可点击事件。以下示例允许查看者单击图表上的特定数据点以查看向下钻取报告。希望它有所帮助:



http:// www。 4guysfromrolla.com/articles/102809-1.aspx [ ^ ]


http://usingaspdotnet.blogspot.in/2011/07/google-visualization-bar-chart-in.html [ ^ ]



https://developers.google.com/chart/interactive/docs/gallery/barchart?csw=1 [ ^ ]

How to create a chart that allows the user to click on the specific chart area, when user click on the specific chart are I want to fire some event on that, like I want to display more detailed chart on the item user have clicked.

I have used Webchart, MicrosoftChart but both provides chart as image so no clickable area there any alternate?

解决方案

Number of free (javascript packages) or paid third party like http://demos.telerik.com/aspnet-ajax/chart/examples/overview/defaultcs.aspx[^] etc provide features to implement charts in ASP.Net.


Microsoft Chart control does support clickable event. This following example allows the viewer to click on a particular data point on a chart to view a drill down report. Hope it helps:

http://www.4guysfromrolla.com/articles/102809-1.aspx[^]


http://usingaspdotnet.blogspot.in/2011/07/google-visualization-bar-chart-in.html[^]

https://developers.google.com/chart/interactive/docs/gallery/barchart?csw=1[^]


这篇关于如何在asp.net中创建可点击的图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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