Falk - 2016-03-08

Hello Experts,

I try to use stacked bars with Zedgraph and having some trouble when some datapoint are missing. Here my code:

    Dim PPListA As New PointPairList
    Dim PPListB As New PointPairList
    Dim PPListC As New PointPairList
    Dim PartA As String = "S84000"
    Dim PartB As String = "S85000"
    Dim PartC As String = "S86000"

    With zg1.GraphPane
        .XAxis.Scale.Min = 0
        .XAxis.Scale.Max = 11
        .YAxis.Scale.Min = 0
        .YAxis.Scale.Max = 20
        .BarSettings.Type = BarType.Stack
    End With

    PPListA.Add(1, 1)
    PPListA.Add(2, 1)
    PPListA.Add(3, 1)
    PPListA.Add(4, 1)
    PPListA.Add(5, 1)
    PPListA.Add(6, 1)
    PPListA.Add(7, 1)
    PPListA.Add(8, 1)
    PPListA.Add(9, 1)
    PPListA.Add(10, 1)
    PPListB.Add(1, 2)
    PPListB.Add(2, 2)
    PPListB.Add(3, 2)
    PPListB.Add(4, 2)
    'PPListB.Add(5, 2) <------------------------
    PPListB.Add(6, 2)
    PPListB.Add(7, 2)
    PPListB.Add(8, 2)
    PPListB.Add(9, 2)
    PPListB.Add(10, 2)
    PPListC.Add(1, 3)
    PPListC.Add(2, 3)
    PPListC.Add(3, 3)
    PPListC.Add(4, 3)
    PPListC.Add(5, 3)
    PPListC.Add(6, 3)
    PPListC.Add(7, 3)
    PPListC.Add(8, 3)
    PPListC.Add(9, 3)
    PPListC.Add(10, 3)

    zg1.GraphPane.AddBar(PartA, PPListA, Color.Red)
    zg1.GraphPane.AddBar(PartB, PPListB, Color.Blue)
    zg1.GraphPane.AddBar(PartC, PPListC, Color.Green)

    zg1.AxisChange()
    zg1.Refresh()

When all the PointPairList contain the same X Values everything is fine. But when one PointPair is missing (commented line) the graph is not correct. For this example the Point (5,3) from PPListC is not displayed.
When removing the Point (5,1) from PPListA the Points (5,2) from ListB and (5,3) from ListC is not displayed.

When changing from
.BarSettings.Type = BarType.Stack
to
.BarSettings.Type = BarType.Cluster
everything is fine, But thats not what I need.

Maybe somobody could help?