The gauge axis has a property called Range that allows you to change the range of values displayed by the axis scale. By default the range is set to [0, 100]. The following code will set the axis range to [0, 1000]:
C# |
Copy Code
|
---|---|
ChartControl1.Panels.Clear(); NRadialGaugePanel radialGauge = new NRadialGaugePanel(); NGaugeAxis axis = (NGaugeAxis)radialGauge.Axes[0]; axis.Range = new NRange1DD(0, 1000); nChartControl1.Panels.Add(radialGauge); nChartControl1.Refresh(); |
Visual Basic |
Copy Code
|
---|---|
NChartControl1.Panels.Clear() Dim radialGauge As New NRadialGaugePanel Dim axis As NGaugeAxis = CType(radialGauge.Axes(0), NGaugeAxis) axis.Range = New NRange1DD(0, 1000) NChartControl1.Panels.Add(radialGauge) NChartControl1.Refresh() |