Hi Lance,
The following guidelines should help you port the application:
Nevron.NChart.NChart.BeforePaint
Nevron.NChart.NChart.AfterPaint
Check out the All Examples \ Custom Painting - the main idea is that you need to create a callback class. The following topic in the documentation shows how to achieve this:
http://helpdotnetvision.nevron.com/UsersGuide_Miscellaneous_Custom_Painting.html
Nevron.NChart.WinForm.NChartControl.Settings.RenderDevice
Property is now called render surface
nChartControl1.Settings.RenderSurface = RenderSurface.Window;
Nevron.NChart.NAxis.DimensionScale.AutoLabels
Nevron.NChart.NAxisScaleDimension.AutoLabels
The following code shows how to apply custom labels to the X axis:
NOrdinalScaleConfigurator scaleX = (NOrdinalScaleConfigurator)chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator;
scaleX.AutoLabels = false;
scaleX.Labels.Add("One");
scaleX.Labels.Add("Two");
Nevron.NChart.NChart.PredefinedChartStyle
NOTE: Nevron.Chart.NChart.SetPredefinedChartStyle can be used to set the value, but how can you get the current value?
Example:
Dim chart As Nevron.NChart.NChart
Dim desiredPredefinedChartStyle As Nevron.NChart.PredefinedChartStyle
'...
If (chart.PredefinedChartStyle <> desiredPredefinedChartStyle) Then
chart.PredefinedChartStyle = desiredPredefinedChartStyle
' Run additional code here that is required when chart.PredefinedChartStyle is set to a new value.
End If
There is no way to get the predefined style - you can however simply have a field in the form that hosts the control that stores the currently applied predefined style.
Nevron.NChart.NAxis.TitleText.Offset
Nevron.NChart.NAxis.TitleText.HorzAlign
Nevron.NChart.NAxis.TitleText.VertAlign
The axis title poperties are exposed from the scale configurator attached to the axis:
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator.Title.Offset = new NLength(10);
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator.Title.RulerAlignment = Nevron.HorzAlign.Left;
Nevron.NChart.NSeries.DataLabels.DrawEvery
This property is no longer present in the control. You can however assign individual data label styles to data points - for example:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.DataLabelStyle.Visible = false;
bar.Values.Add(10);
bar.Labels.Add("");
bar.Values.Add(20);
bar.Labels.Add("Has Label");
NDataLabelStyle labelStyle = new NDataLabelStyle();
labelStyle.Visible = true;
labelStyle.Format = "<label>";
bar.DataLabelStyles[1] = labelStyle;
bar.Values.Add(20);
bar.Labels.Add("");
chart.Series.Add(bar);
Nevron.NChart.NChartWall.FillEffect.Emissive
chart.Wall(ChartWallType.Back).FillStyle.MaterialStyle.Emissive = Color.Yellow;
Hope this helps - let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team