散点图参考
Dim c1Chart1 = e.form.Controls("Chart1").BaseControl
c1Chart1.ChartArea.Style.Border.BorderStyle = C1.Win.C1Chart.BorderStyleEnum.Fillet
'模拟数据
Dim npoints As Integer = 50
' clear all data
c1Chart1.ChartGroups(0).ChartData.SeriesList.Clear()
' fisrt series
Dim ds1 = c1Chart1.ChartGroups(0).ChartData.SeriesList.AddNewSeries()
Dim x As Single() = CType(Array.CreateInstance(Gettype(Single), npoints), Single())
Dim y As Single() = CType(Array.CreateInstance(Gettype(Single), npoints), Single())
Dim rnd As New Random()
Dim i As Integer
For i = 0 To npoints - 1
x(i) = rnd.Next(100)
y(i) = rnd.Next(100)
Next i
ds1.X.CopyDataIn(x)
ds1.Y.CopyDataIn(y)
ds1.SymbolStyle.Color = Color.Red
ds1.SymbolStyle.Shape = C1.Win.C1Chart.SymbolShapeEnum.Dot
ds1.SymbolStyle.Size = 5
ds1.LineStyle.Pattern = C1.Win.C1Chart.LinePatternEnum.None
ds1.Label = String.Format("Red series - {0} points", ds1.Length)