asp.net中怎样实现类似于CPU的曲线图????急……

来源:百度知道 编辑:UC知道 时间:2024/05/29 16:13:26
背景有栅格……要实现实时更新曲线……X轴的随时间的变化而增长……哪位大侠会啊……请指教……谢谢????????????非常急……如能解决悬赏一百分……

你可以参考该源码编写:http://www.codeproject.com/KB/miscctrl/SimplePerfChart.aspx?df=100&forumid=384678&exp=0&select=1888300

用下面的代码可以获取CPU所有的计数器
System.Diagnostics.PerformanceCounterCategory mycat = new
System.Diagnostics.PerformanceCounterCategory("Process");

用counter.NextValue()去获取每一个计数器当前的值

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace CNPOPSOFT.Controls
{
[Serializable]
public class CustomRectangle
{
public CustomRectangle()
{
}

public CustomRectangle(float x, float y, float width, float height)
{
this.x = x;
this.