This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.vb
50 lines (40 loc) · 1.83 KB
/
Form1.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Imports System
Imports System.Windows.Forms
Imports DevExpress.XtraCharts
' ...
Namespace Series_RadarPointChart
Partial Public Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' Create a new chart.
Dim RadarPointChart As New ChartControl()
' Add a radar series to it.
Dim series1 As New Series("Series 1", ViewType.RadarPoint)
' Populate the series with points.
series1.Points.Add(New SeriesPoint(0, 90))
series1.Points.Add(New SeriesPoint(90, 95))
series1.Points.Add(New SeriesPoint(180, 50))
series1.Points.Add(New SeriesPoint(270, 55))
series1.Points.Add(New SeriesPoint(0, 180))
series1.Points.Add(New SeriesPoint(90, 185))
series1.Points.Add(New SeriesPoint(180, 270))
series1.Points.Add(New SeriesPoint(270, 275))
' Add the series to the chart.
RadarPointChart.Series.Add(series1)
' Flip the diagram (if necessary).
CType(RadarPointChart.Diagram, RadarDiagram).StartAngleInDegrees = 180
CType(RadarPointChart.Diagram, RadarDiagram).RotationDirection = RadarDiagramRotationDirection.Counterclockwise
' Add a title to the chart and hide the legend.
Dim chartTitle1 As New ChartTitle()
chartTitle1.Text = "Radar Point Chart"
RadarPointChart.Titles.Add(chartTitle1)
RadarPointChart.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False
' Add the chart to the form.
RadarPointChart.Dock = DockStyle.Fill
Me.Controls.Add(RadarPointChart)
End Sub
End Class
End Namespace