Hello,
I have a Line Chart and Series attached from a Datatable. When I have a NULL Value within a series and using
UltraChart1.LineChart.NullHandling = UltraChart.Shared.Styles.NullHandling.DontPlot
then it happens that the Datapoint before the Null value is not rendered.
Steps to reproduce:
Imports Infragistics
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim UltraChart1 As New Win.UltraWinChart.UltraChart
UltraChart1.ChartType = UltraChart.Shared.Styles.ChartType.LineChart
Dim LineAppearance01 As New UltraChart.Resources.Appearance.LineAppearance
With LineAppearance01
.LineStyle.DrawStyle = UltraChart.Shared.Styles.LineDrawStyle.Solid
.IconAppearance.Icon = UltraChart.Shared.Styles.SymbolIcon.Circle
.IconAppearance.IconSize = UltraChart.Shared.Styles.SymbolIconSize.Large
.Thickness = 3
.IconAppearance.PE.Fill = Color.MidnightBlue
End With
UltraChart1.LineChart.LineAppearances.Add(LineAppearance01)
UltraChart1.LineChart.NullHandling = UltraChart.Shared.Styles.NullHandling.DontPlot
Dim dt As New DataTable("Data")
dt.Columns.Add("Col1", GetType(System.Double))
dt.Columns.Add("Col2", GetType(System.Double))
dt.Columns.Add("Col3", GetType(System.Double))
dt.Columns.Add("Col4", GetType(System.Double))
dt.Columns.Add("Col5", GetType(System.Double))
Dim dr As DataRow = dt.NewRow
dr(0) = 8.0
dr(1) = DBNull.Value
dr(2) = 15.5
dr(3) = 12.0
dr(4) = 11
dt.Rows.Add(dr)
UltraChart1.DataSource = dt
UltraChart1.DataBind()
Me.Controls.Add(UltraChart1)
End Sub
End Class
You see on the chart that the first datapoint [dr(0) = 8.0] is not on the chart.
Change
dr(0) = 8.0
dr(1) = DBNull.Value
dr(2) = 15.5
To
dr(0) = 8.0
dr(1) = 15.5
dr(2) = DBNull.Value
and try again. Then it works as expected
I really need your help as my User do not trust anymore in the Application.
Thanks