资源简介

借助一些控件,自己开发的一个界面数据显示程序,包括柱状图,饼图,仪表盘,以及数据表格等等,有兴趣的可以下载研究。

资源截图

代码片段和文件信息

using LiveCharts;
using LiveCharts.WinForms;
using LiveCharts.Wpf;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Media;

namespace DataShow
{
    public partial class FormMain : UIForm
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender EventArgs e)
        {
            InitSolidGauge();

            InitGauge();
            InitUPHChart();
            InitYieldChart();
            InitPie();
            InitChart();
            this.uiDataGridView1.style = UIstyle.Black;
            this.uiDataGridView1.Rows.Add(1 “测试1“ “测试2“ false);
            this.uiDataGridView1.Rows.Add(2 “测试1“ “测试2“ true);
            this.uiDataGridView1.Rows.Add(3 “测试1“ “测试2“ true);
            this.uiDataGridView1.Rows.Add(4 “测试1“ “测试2“ false);
            this.uiDataGridView1.Rows.Add(5 “测试1“ “测试2“ true);
            this.uiDataGridView1.Rows.Add(6 “测试1“ “测试2“ true);

        }

        private void InitGauge()
        {
            this.angularGauge1.FromValue = 10;
            this.angularGauge1.ToValue = 100;
            this.angularGauge1.TickStep = 1;
            this.angularGauge1.LabelsStep = 10;
            this.angularGauge1.Value = 33;
            this.angularGauge1.Wedge = 270;
            this.angularGauge1.Text = “产量UPH“;
            this.angularGauge1.base.Name = “UPH“;
            this.angularGauge1.base.Foreground = System.Windows.Media.Brushes.White;
            this.angularGauge1.Sections.Add(new AngularSection
            {
                FromValue = 10
                ToValue = 120
                Fill = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromRgb(172 172 170))
            });
            this.angularGauge1.Sections.Add(new AngularSection
            {
                FromValue = 120
                ToValue = 180
                Fill = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromRgb(180 22 33))
            });
        }

        private void InitPie()
        {
            Func labelPoint = chartPoint =>
                string.Format(“{0} ({1:P})“ chartPoint.Y chartPoint.Participation);
            this.pieChart1.Series = new SeriesCollection{
                new PieSeries
                {
                    title=“Impulse“
                    Values=new ChartValues{3}
                    DataLabels=true
                    PushOut=10
                    LabelPoint=labelPoint
                }
                new PieSeries
                {
                    title=“Function“
                    Values=new ChartValues{22}
                    DataLabels=true
          

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-12-28 17:55  DataShow\
     目录           0  2020-12-18 11:32  DataShow\ControlLibrary\
     文件      152064  2020-08-31 09:14  DataShow\ControlLibrary\LiveCharts.dll
     文件       19456  2020-08-31 09:14  DataShow\ControlLibrary\LiveCharts.WinForms.dll
     文件      217600  2020-08-31 09:14  DataShow\ControlLibrary\LiveCharts.Wpf.dll
     文件     1724416  2020-12-21 14:15  DataShow\ControlLibrary\SunnyUI.dll
     目录           0  2021-05-13 13:45  DataShow\DataShow\
     文件         993  2020-12-21 17:45  DataShow\DataShow.sln
     文件       71168  2021-01-18 19:53  DataShow\DataShow.v12.suo
     文件         187  2020-12-15 10:15  DataShow\DataShow\App.config
     目录           0  2020-12-15 10:17  DataShow\DataShow\bin\
     目录           0  2020-12-23 09:56  DataShow\DataShow\bin\Debug\
     文件     1499648  2014-08-11 14:06  DataShow\DataShow\bin\Debug\CSkin.dll
     文件      136192  2021-05-13 13:45  DataShow\DataShow\bin\Debug\DataShow.exe
     文件         187  2020-12-15 10:15  DataShow\DataShow\bin\Debug\DataShow.exe.config
     文件       48640  2021-05-13 13:45  DataShow\DataShow\bin\Debug\DataShow.pdb
     文件       24224  2021-05-13 16:04  DataShow\DataShow\bin\Debug\DataShow.vshost.exe
     文件         187  2020-12-15 10:15  DataShow\DataShow\bin\Debug\DataShow.vshost.exe.config
     文件         490  2019-12-07 17:10  DataShow\DataShow\bin\Debug\DataShow.vshost.exe.manifest
     文件      152064  2020-08-31 09:14  DataShow\DataShow\bin\Debug\LiveCharts.dll
     文件       19456  2020-08-31 09:14  DataShow\DataShow\bin\Debug\LiveCharts.WinForms.dll
     文件      217600  2020-08-31 09:14  DataShow\DataShow\bin\Debug\LiveCharts.Wpf.dll
     文件     1724416  2020-12-21 14:15  DataShow\DataShow\bin\Debug\SunnyUI.dll
     目录           0  2020-12-15 10:17  DataShow\DataShow\bin\Release\
     文件        5256  2020-12-21 17:46  DataShow\DataShow\DataShow.csproj
     文件       12639  2021-05-13 13:45  DataShow\DataShow\FormMain.cs
     文件       35019  2020-12-31 16:05  DataShow\DataShow\FormMain.Designer.cs
     文件        6553  2020-12-31 16:05  DataShow\DataShow\FormMain.resx
     目录           0  2020-12-15 10:15  DataShow\DataShow\obj\
     目录           0  2021-05-13 13:45  DataShow\DataShow\obj\Debug\
     文件        1348  2021-05-13 16:04  DataShow\DataShow\obj\Debug\DataShow.csproj.FileListAbsolute.txt
............此处省略23个文件信息

评论

共有 条评论