Version

SimpleDataCollection

In Visual Basic:

Imports System.Collections.ObjectModel
' ...
Public Class SimpleDataCollection : Inherits ObservableCollection(Of SimpleDataPoint)
    Public Sub New()
        Me.Add(New SimpleDataPoint() With {.Label = "1", .Value = 3.0})
        Me.Add(New SimpleDataPoint() With {.Label = "2", .Value = 2.0})
        Me.Add(New SimpleDataPoint() With {.Label = "3", .Value = 3.0})
        Me.Add(New SimpleDataPoint() With {.Label = "4", .Value = 4.0})
        Me.Add(New SimpleDataPoint() With {.Label = "5", .Value = 5.0})
        Me.Add(New SimpleDataPoint() With {.Label = "6", .Value = 6.0})
        Me.Add(New SimpleDataPoint() With {.Label = "7", .Value = 5.0})
    End Sub
End Class
Public Class SimpleDataPoint
    Private _value As Double
    Public Property Value() As Double
        Get
            Return _value
        End Get
        Set(ByVal value As Double)
            _value = value
        End Set
    End Property
    Private _label As String
    Public Property Label() As String
        Get
            Return _label
        End Get
        Set(ByVal value As String)
            _label = value
        End Set
    End Property
End Class

In C#:

    using System.Collections.ObjectModel;
    // ...
    public class SimpleDataCollection : ObservableCollection<SimpleDataPoint>
    {
        public SimpleDataCollection()
        {
            this.Add(new SimpleDataPoint() { Label = "1", Value = 3.0 });
            this.Add(new SimpleDataPoint() { Label = "2", Value = 2.0 });
            this.Add(new SimpleDataPoint() { Label = "3", Value = 3.0 });
            this.Add(new SimpleDataPoint() { Label = "4", Value = 4.0 });
            this.Add(new SimpleDataPoint() { Label = "5", Value = 5.0 });
            this.Add(new SimpleDataPoint() { Label = "6", Value = 6.0 });
            this.Add(new SimpleDataPoint() { Label = "7", Value = 5.0 });
        }
    }
    /// <summary>
    /// Simple storage class for pair of string and double value
    /// </summary>
    public class SimpleDataPoint
    {
        public double Value { get; set; }
        public string Label { get; set; }
    }