TeeChart5
創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供韶關(guān)網(wǎng)站建設(shè)、韶關(guān)做網(wǎng)站、韶關(guān)網(wǎng)站設(shè)計(jì)、韶關(guān)網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、韶關(guān)企業(yè)網(wǎng)站模板建站服務(wù),十載韶關(guān)做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
這個(gè)畫圖表很不錯(cuò)。。
百度一下一大堆下載的。
方法一:Excel中就可以實(shí)現(xiàn);
方法二:通過VB.net將數(shù)據(jù)寫入到Excel中生成趨勢(shì)圖;
方法三:直接通過VB.net寫出這種趨勢(shì)圖。
具體方法可以參考VB.net操作Excel方法:
可用代碼:
For i = 0 To iRow - 1
pointXY(i) = "'這里你可以直接放上你的數(shù)據(jù)點(diǎn)值在X線上
"
pointYY(i) = "'這里你可以直接放上你的數(shù)據(jù)點(diǎn)值在Y線上
Next
Private Sub DrawRectangle()
Try
Dim oV2Bar As New Graphing.V3.Bar.BarChart()
Dim renderer As New Graphing.V3.Render
PictureBox1.Image = renderer.DrawChart(oV2Bar, Xline,Yline iRow, pointXY, pointYY)
End If
Catch ex As Exception
MsgBox(ex.Message)
Public Class BarChart : Inherits Base.BaseGraph
'This will hold the Bar pieces.
Public BarSliceCollection As New Bar.BarPieceCollection()
Private _Alignment As Base.b_BarTypes = Base.b_BarTypes.HorizontalLeft
Public Property Alignment() As Base.b_BarTypes
Get
Return _Alignment
End Get
Set(ByVal Value As Base.b_BarTypes)
_Alignment = Value
End Set
End Property
'Private _ChartType As Base.b_ChartType = Base.b_ChartType.Bar
Public Shadows ReadOnly Property ChartType() As Base.b_ChartType
Get
Return MyBase.ChartType
End Get
End Property
Sub New()
MyBase.new()
MyBase.ChartType = Base.b_ChartType.Bar
End Sub
Sub New(ByVal BarPieceCollection As BarPieceCollection)
MyBase.new()
MyBase.ChartType = Base.b_ChartType.Bar
BarSliceCollection = BarPieceCollection
End Sub
End Class
End Try
End Sub
.NET 的第三方控件首推Devexpress
不過這個(gè)控件學(xué)起來有些難度,官方文檔全是英文的;而且國(guó)內(nèi)資料較少
微軟上有Microsoft Chart控件的示例程序,非常詳細(xì),一看就會(huì)。
但我微軟站上的剛沒找到,這里找到一個(gè)
private void MyPrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
public static boolean isNumeric(String str){
if(str.matches("http://d*"){
return true;
}else{
return false;
}
}
1、檢查一下是不是序列的名稱不對(duì)應(yīng),進(jìn)行了修改,不是默認(rèn)的"Series1";
3、修改正確或是沒有錯(cuò)誤時(shí)可全部重新生成一次看看。
希望對(duì)你有幫助,還有疑問請(qǐng)追問或是Hi