Nevron .NET Vision Documentation
Porting from Q2 2008 to Q3 2008

This topic describes the differences in the programming model between Nevron Chart for .NET Q2 2008 and Nevron Chart for .NET Q4 2008.

Enable3D Property

The NChartControl.Settings.RenderDevice property has been depricated. To switch a chart in 3D mode you should now use the Enable3D property of the chart panel. This allows you to have multiple 2D and 3D chart in one chart control. The following code snippets show how code should be rewritten to reflect this change:

C#
Copy Code

// old code
nChartControl1.Settings.RenderDevice = RenderDevice.OpenGL;

// new code
NChart chart = nChartControl1.Charts[0];
chart.Enable3D =
true;

Visual Basic
Copy Code

' old code
NChartControl1.Settings.RenderDevice = RenderDevice.OpenGL

' new code
Dim chart As NChart = NChartControl1.Charts(0)
chart.Enable3D =
True

Scale Label Angle

The scale label angle mode enumeration (ScaleLabelAngleMode) has been modified. The following table shows how to translate the previous enum to the new ones:

Old Enum Values New Enum Values Description
Custom View The label angle is specified in chart view space
AutoAndCustom Scale

The following code snippets show to port old code fragments with the new enum:

C#
Copy Code

// old code
scaleConfigurator1.LabelStyle.Angle = new NScaleLabelAngle(ScaleLabelAngleMode.Custom, 0);
scaleConfigurator2.LabelStyle.Angle =
new NScaleLabelAngle(ScaleLabelAngleMode.AutoAndCustom, 90);

// new code
scaleConfigurator1.LabelStyle.Angle = new NScaleLabelAngle(ScaleLabelAngleMode.View, 0);
scaleConfigurator2.LabelStyle.Angle =
new NScaleLabelAngle(ScaleLabelAngleMode.Scale, 90);

Visual Basic
Copy Code

' old code
scaleConfigurator1.LabelStyle.Angle = New NScaleLabelAngle(ScaleLabelAngleMode.Custom, 0)
scaleConfigurator2.LabelStyle.Angle =
New NScaleLabelAngle(ScaleLabelAngleMode.AutoAndCustom, 90)

' new code
scaleConfigurator1.LabelStyle.Angle = New NScaleLabelAngle(ScaleLabelAngleMode.View, 0)
scaleConfigurator2.LabelStyle.Angle =
New NScaleLabelAngle(ScaleLabelAngleMode.Scale, 90)

Polar Series

The NPolarSeries class is now an abstract base class for the following new types:

NPolarAreaSeries

NPolarLineSeries

NPolarPointSeries

You have to use one of these types instead of NPolarSeries.

Radar Series

The NRadarSeries class is now an abstract base class for the following new types:

NRadarAreaSeries

NRadarLineSeries

You have to use one of these types instead of NRadarSeries.
Light Sources

The NLightSource class is now an abstract base class for the following new types:

NDirectionalLightSource

NPointLightSource

NSpotLightSource

You have to use one of these types instead of NLightSource.

 

 


©2017. Nevron Software LLC.

Send Feedback