The following code will create a new gauge axis docked at the top of the of the gauge:
C# |
Copy Code
|
---|---|
nChartControl1.Panels.Clear(); NRadialGaugePanel radialGauge = new NRadialGaugePanel(); NGaugeAxis axis = new NGaugeAxis(); axis.Anchor = new NDockGaugeAxisAnchor(GaugeAxisDockZone.Top, true, 50, 100); axis.Range = new NRange1DD(50, 100); radialGauge.Axes.Add(axis); radialGauge.SweepAngle = 270; nChartControl1.Panels.Add(radialGauge); |
Visual Basic |
Copy Code
|
---|---|
NChartControl1.Panels.Clear() Dim radialGauge As New NRadialGaugePanel Dim axis As New NGaugeAxis axis.Anchor = New NDockGaugeAxisAnchor(GaugeAxisDockZone.Top, True, 50, 100) axis.Range = New NRange1DD(50, 100) radialGauge.Axes.Add(axis) radialGauge.SweepAngle = 270 NChartControl1.Panels.Add(radialGauge) |
The above code will result in the following gauge axis configuration: