如何在ASP.Net中使用图表控件创建具有两个系列的条形图 [英] How to create bar chart with two serise using chart control in ASP.Net
本文介绍了如何在ASP.Net中使用图表控件创建具有两个系列的条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用堆积的条形图为服务器可用性创建一个仪表板.如果服务器在特定时间发生故障,则应显示失败系列",而当服务器成功时,则应显示成功系列.
我的数据集是
I want to create a dashboard for server availablity using the stacked bar chart. when the server is fail at a particular time then Failed serise should show at that time and when its success then success series should show.
my dataset is
ServerName Status TimeStamp
http://Server1/ 1 2012-05-08 08:49:46.913
http://Server1/ 1 2012-05-08 09:04:40.097
http://Server1/ 0 2012-05-08 09:20:07.170
Server2 1 2012-05-08 08:42:06.180
Server2 1 2012-05-08 11:26:52.020
Server2 0 2012-05-08 11:28:59.623
如果状态为1,则服务器成功;如果状态为0,则服务器失败.
When status is 1 then server is success and when status is 0 then server is failed.
推荐答案
请参阅本文..
http://www.codetoad.com/asp.net_graph.asp [
Refer this article..
http://www.codetoad.com/asp.net_graph.asp[^]
这篇关于如何在ASP.Net中使用图表控件创建具有两个系列的条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文