当前位置 > 首页 > Asp.net

Automated Chart Generation

2009-12-19 5:53:00来源:Asp.net

It’s late on the Friday afternoon before Christmas week which means things are pretty quiet around the office. This quiet has the net-effect of allowing me to get quite a bit done. The last few days have been very productive with respect to our research project and Azure work (more on that coming soon) which is now in full swing. We are currently working on collecting performance data from our codes running in Azure (and soon in the Amazon cloud) and are also doing some testing of transfer speeds of data both to/from the cloud as well as between compute and storage in the cloud.

I’ve been working to automate much of this testing so we can do things in a repeatable fashion as well has have something that others could run (both other users like ourselves as well as possibly vendors should we come across something that requires a repro scenario). So far, running tests and generating data in CSV or XML format is pretty simple, but I found myself wanting to automatically generate charts/graphs of the data as part of the test process to allow a quick visualization of how the test performed. I spent a good bit of the day looking at old tools for command-line generation of charts (i.e. RDTool, etc.) and none of them were exactly what I was looking for – not to mention my proclivity to using C# and VS.NET tools and my desire to have something that looked refined/polished and not overly raw.

Thankfully, I stumbled upon something I should have remembered existed but simply hadn’t had the need to use before – the System.Windows.Forms.DataVisualization.Charting class. If you aren’t familiar with this assembly, it was released at PDC08 and has a companion Web class for performing similar operations in ASP.NET applications. In my basic testing I was able to build a console application that would ingest the CSV output from my testing harness and then generate some fairly nice looking charts based on that data. The following shows a chart (click the chart to see it full size) generated from ~1800 data points, and automatically generates a 50% band and 90% band allowing the viewer to very easily ascertain the averages and data points. This was generated using a combination of the FastPoint and BoxPlot chart types.

chartImage



  • 《.NET4.0 面向对象编程漫谈》读书笔记 ——第13章 对象的复制与序列化

    2011-5-24 14:23:00

    第13章 对象的复制与序列化 【简介】:序列化技术是学习分布式软件系统开发技术(如WCF)的前提之一,本章主要介绍对象的浅复制与深复制、对象的序列化、对象序列化应用等。 第一节

  • Policy Injection Application Block

    2007-3-20 19:30:00

    Microsoft Patterns & Practices团队在2007年发布的Enterprise Library 3.0 February 2007 CTP中,我们惊喜地发现了AOP的

  • Asp.net MVC3.0 入门指南 6 审视编辑方法和视图

    2011-5-13 11:43:00

    审视编辑方法和视图   在这一节中,您将审视movie控制器生成的响应方法和视图。然后您将添加 一个自定义搜索页面。 运行程序并通过在URL追加/Moives浏览movi

  • SL4 & VS2010初体验

    2009-11-28 20:20:00

    阅读: 319 评论: 4 作者: Amar-Yao 发表于 2009-11-28 17:52 原文链接 自从发布上一个SL系列已经有1个多月的时间了。一直感觉自己离SL越来越远了,所以

  • 谨慎使用asp.net中的static变量

    2012-12-6 14:27:00

    用惯了C/S编程,经常定义全局变量的时候,为了方便,而且下次调用某函数的时候仍能获取到变量的值,我们经常会定义static类型的全局变量。   但是现在转而B/S的编程,坏习惯自然而来的的沿用

  • C # 如何实现多继承

    2009-6-16 2:24:00

    C # 如何实现多继承,关键在于接口可以写方法的实现