资源简介

这篇文章(https://www.daboke.com)主要介绍了如何使用DevExpress的ChartControl控件绘制酷炫的实时的曲线

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraCharts;
using System.Timers;

namespace lianxi3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int row = 0;//点数
        int value = 0;//数值
        Random rd = new Random();//随机值

        // 创建一个点图
        ChartControl pointChart = new ChartControl();
        // 创建一条曲线
        Series series1 = new Series(“Series 1“ ViewType.Point);

        private void addPoint(object source System.Timers.ElapsedEventArgs e)
        {
            row = row + 1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-10 18:01  lianxi3\
     文件         189  2020-04-10 10:28  lianxi3\App.config
     目录           0  2020-04-09 20:37  lianxi3\bin\
     目录           0  2020-04-09 21:05  lianxi3\bin\Debug\
     目录           0  2020-04-09 21:05  lianxi3\bin\Debug\de\
     文件      175896  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Data.v19.2.resources.dll
     文件       30488  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Office.v19.2.Core.resources.dll
     文件       15640  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Pdf.v19.2.Core.resources.dll
     文件       78104  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Printing.v19.2.Core.resources.dll
     文件      210712  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.RichEdit.v19.2.Core.resources.dll
     文件       13080  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Sparkline.v19.2.Core.resources.dll
     文件       27416  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Utils.v19.2.resources.dll
     文件       54040  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.Utils.v19.2.UI.resources.dll
     文件       45336  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraBars.v19.2.resources.dll
     文件      310040  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraCharts.v19.2.resources.dll
     文件      165656  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraCharts.v19.2.Wizard.resources.dll
     文件      122648  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraEditors.v19.2.resources.dll
     文件       44824  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraGrid.v19.2.resources.dll
     文件       18712  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraLayout.v19.2.resources.dll
     文件       12568  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraNavBar.v19.2.resources.dll
     文件       23832  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraPrinting.v19.2.resources.dll
     文件      110872  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraRichEdit.v19.2.resources.dll
     文件       21272  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraTreeList.v19.2.resources.dll
     文件       14616  2020-04-08 18:02  lianxi3\bin\Debug\de\DevExpress.XtraVerticalGrid.v19.2.resources.dll
     文件      884504  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Charts.v19.2.Core.dll
     文件     7416600  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Data.v19.2.dll
     文件     1377551  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Data.v19.2.xml
     文件     8590104  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Images.v19.2.dll
     文件     2535192  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Office.v19.2.Core.dll
     文件       96683  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Office.v19.2.Core.xml
     文件     3001624  2020-04-08 18:02  lianxi3\bin\Debug\DevExpress.Pdf.v19.2.Core.dll
............此处省略130个文件信息

评论

共有 条评论