資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
//這是后來需要引用的命名空間,圖表可視化的類型
using?System.Windows.Forms.DataVisualization.Charting;
namespace?Draw
{
????public?class?DrawChart
????{
????????//包含四個(gè)參數(shù)
????????//1、chart控件的參數(shù):默認(rèn)有Chart控件的占位,直接在窗體中調(diào)整好大小然后要先在屬性框中將ChartArea、Series、Legend移除
????????//2、mode:也就是圖線顯示的模式:可以是曲線形、柱狀圖或其他的模式(但是目前只有曲線的形式)
????????//3、數(shù)據(jù)表dt:這個(gè)是畫圖所必須的數(shù)據(jù)參數(shù),可以將數(shù)據(jù)庫中的數(shù)據(jù)轉(zhuǎn)變成數(shù)據(jù)表的形式之后傳入
????????//4、c:代表想要的圖線的顏色
????????public?static?bool?showInChart(Chart?chart?int?mode?DataTable?dt?Color[]?c)
????????{
????????????//if?(chart?==?null)
????????????//{
????????????//????//若該窗體中不含chart控件,則實(shí)例化一個(gè)控件
????????????//????chart?=?new?Chart();
????????????//??
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
????..A..H.????104960??2018-01-25?21:30??Draw1-180125\.vs\Draw\v14\.suo
?????文件??????19456??2018-01-25?21:12??Draw1-180125\Draw\bin\Debug\Draw.exe
?????文件??????42496??2018-01-25?21:12??Draw1-180125\Draw\bin\Debug\Draw.pdb
?????文件??????22688??2018-01-25?21:12??Draw1-180125\Draw\bin\Debug\Draw.vshost.exe
?????文件????????490??2016-07-16?19:44??Draw1-180125\Draw\bin\Debug\Draw.vshost.exe.manifest
?????文件???????4479??2018-01-25?10:19??Draw1-180125\Draw\Draw.csproj
?????文件???????9663??2018-01-25?20:38??Draw1-180125\Draw\DrawChart.cs
?????文件???????6113??2018-01-25?21:16??Draw1-180125\Draw\DrawChart1.cs
?????文件???????1949??2018-01-19?11:06??Draw1-180125\Draw\Form1.cs
?????文件???????3030??2018-01-19?11:06??Draw1-180125\Draw\Form1.Designer.cs
?????文件???????5817??2018-01-19?11:06??Draw1-180125\Draw\Form1.resx
?????文件???????3214??2018-01-25?20:40??Draw1-180125\Draw\Form2.cs
?????文件???????2100??2018-01-24?19:44??Draw1-180125\Draw\Form2.Designer.cs
?????文件???????5817??2018-01-25?20:21??Draw1-180125\Draw\Form2.resx
?????文件???????8601??2018-01-25?19:59??Draw1-180125\Draw\Form3.cs
?????文件???????2166??2018-01-25?10:21??Draw1-180125\Draw\Form3.Designer.cs
?????文件???????5817??2018-01-25?10:21??Draw1-180125\Draw\Form3.resx
?????文件??????15437??2018-01-25?10:13??Draw1-180125\Draw\Form4.cs
?????文件???????2165??2018-01-18?14:13??Draw1-180125\Draw\Form4.Designer.cs
?????文件???????5817??2018-01-18?14:13??Draw1-180125\Draw\Form4.resx
?????文件???????1625??2017-11-09?20:03??Draw1-180125\Draw\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7106??2018-01-25?10:14??Draw1-180125\Draw\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????13501??2018-01-25?21:12??Draw1-180125\Draw\obj\Debug\Draw.csproj.FileListAbsolute.txt
?????文件???????1186??2018-01-25?20:21??Draw1-180125\Draw\obj\Debug\Draw.csproj.GenerateResource.Cache
?????文件???????2383??2017-11-09?14:22??Draw1-180125\Draw\obj\Debug\Draw.csprojResolveAssemblyReference.cache
?????文件??????19456??2018-01-25?21:12??Draw1-180125\Draw\obj\Debug\Draw.exe
?????文件????????180??2018-01-17?21:51??Draw1-180125\Draw\obj\Debug\Draw.Form1.resources
?????文件????????180??2018-01-25?20:21??Draw1-180125\Draw\obj\Debug\Draw.Form2.resources
?????文件????????180??2018-01-25?10:21??Draw1-180125\Draw\obj\Debug\Draw.Form3.resources
?????文件????????180??2018-01-25?10:19??Draw1-180125\Draw\obj\Debug\Draw.Form4.resources
............此處省略24個(gè)文件信息
評論
共有 條評論