Imports System.Windows.Forms.DataVisualization.Charting
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim myChart As New Chart
Dim myData As New List(Of Point)
myData.Add(New Point(3, 0.4))
myData.Add(New Point(5, 5.6))
myData.Add(New Point(7, 7.9))
myChart.DataSource = myData
Dim myChartArea As New ChartArea
myChartArea.Name = "chartArea"
myChart.ChartAreas.Add(myChartArea)
myChart.Series.Clear()
Dim mySeries As New Series
mySeries.XValueMember = "X"
mySeries.YValueMembers = "Y"
mySeries.ChartArea = "chartArea"
myChart.Series.Add(mySeries)
Me.Controls.Add(myChart)
myChart.Dock = DockStyle.Fill
End Sub
End Class