Having trouble getting chart to show up, and missing "DataPointType"

Jun 2, 2016 at 10:00 PM
First thing, when I try to add a DataPointType, it isn't available. I searched the entire solution source code, nothing is called "DataPointType"?



So I tried a different chart type instead of the multiseries, and I'm not sure what I'm missing but the chart doesn't show up at all, it's completely blank.

My XAML:
<UserControl x:Class="xxxxxx.ChartAppControl"
    x:Name="_userControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:metroCharts="clr-namespace:GravityAppsMandelkowMetroCharts;assembly=GravityAppsMandelkowMetroCharts"
    xmlns:local="clr-namespace:[MyNamespaceHere]"
             mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300"
    >

    <UserControl.Resources>
        <local:ChartAppControl x:Key="chartAppControl"/>
    </UserControl.Resources>

<metroCharts:GAScatterChart
            Width="300" Height="300"
            DataContext="{Binding }"
            ChartTitle="my test title" 
            BorderThickness="1" 
            BorderBrush="Black"
            >
            <metroCharts:GAScatterChart.Series >
                <metroCharts:ChartSeries
                    SeriesTitle="{Binding Source={StaticResource chartAppControl}, Path=scatterData1.seriesDisplayName}"
                   DisplayMember="date"
                    ValueMember="amount"
                    ItemsSource="{Binding Source={StaticResource chartAppControl}, Path=scatterData1.Items}"
 
                    />
                <metroCharts:ChartSeries
                   SeriesTitle="{Binding Source={StaticResource chartAppControl}, Path=scatterData2.seriesDisplayName}"
                    DisplayMember="date"
                    ValueMember="amount"
                    ItemsSource="{Binding Source={StaticResource chartAppControl}, Path=scatterData2.Items}"       

                    />
                <metroCharts:ChartSeries
                    SeriesTitle="{Binding Source={StaticResource chartAppControl}, Path=scatterData3.seriesDisplayName}"
                    DisplayMember="date"
                    ValueMember="amount"
                    ItemsSource="{Binding Source={StaticResource chartAppControl}, Path=scatterData3.Items}"      
                    
                    />

            </metroCharts:GAScatterChart.Series>
        </metroCharts:GAScatterChart>

    </Border>

</UserControl>
My code-behind:
namespace [MyNamespace] {

    public partial class ChartAppControl : UserControl {
        #region -- Properties --

        public GraphSeriesInformation scatterData1 { get; set; }
        public GraphSeriesInformation scatterData2 { get; set; }
        public GraphSeriesInformation scatterData3 { get; set; }

        #endregion

        #region -- Constructor --

        public ChartAppControl(MyViewModel myViewModel) {

            AddTestData();
            InitializeComponent();

        }

        #endregion

        private void AddTestData() {

            scatterData1 = new GraphSeriesInformation();
            scatterData2 = new GraphSeriesInformation();
            scatterData3 = new GraphSeriesInformation();

            scatterData1.seriesDisplayName = "Series 1";
            scatterData1.Items.Add(new GraphSeriesDataPoint("mon", 1));
            scatterData1.Items.Add(new GraphSeriesDataPoint("tue", 2));
            scatterData1.Items.Add(new GraphSeriesDataPoint("wed", 4.0));
            scatterData1.Items.Add(new GraphSeriesDataPoint("thur", 9));
            scatterData1.Items.Add(new GraphSeriesDataPoint("fri", 2.8));
            scatterData1.Items.Add(new GraphSeriesDataPoint("sat", 3));
            scatterData1.Items.Add(new GraphSeriesDataPoint("sun", 0));

            scatterData2.seriesDisplayName = "Series 2";
            scatterData2.Items.Add(new GraphSeriesDataPoint("mon", 10));
            scatterData2.Items.Add(new GraphSeriesDataPoint("tue", 23));
            scatterData2.Items.Add(new GraphSeriesDataPoint("wed", 20));
            scatterData2.Items.Add(new GraphSeriesDataPoint("thur", 19));
            scatterData2.Items.Add(new GraphSeriesDataPoint("fri", 7));
            scatterData2.Items.Add(new GraphSeriesDataPoint("sat", 0));
            scatterData2.Items.Add(new GraphSeriesDataPoint("sun", 10));

            scatterData3.seriesDisplayName = "Series 3";
            scatterData3.Items.Add(new GraphSeriesDataPoint("mon", 7));
            scatterData3.Items.Add(new GraphSeriesDataPoint("tue", 3.3));
            scatterData3.Items.Add(new GraphSeriesDataPoint("wed", 4.5));
            scatterData3.Items.Add(new GraphSeriesDataPoint("thur", 5.2));
            scatterData3.Items.Add(new GraphSeriesDataPoint("fri", 3.3));
            scatterData3.Items.Add(new GraphSeriesDataPoint("sat", 1));
            scatterData3.Items.Add(new GraphSeriesDataPoint("sun", 1));
        }

    }

    public class GraphSeriesInformation {

        public string seriesDisplayName { get; set; }

        public ObservableCollection<GraphSeriesDataPoint> Items {
            get { return items; }
            set { items = value; }
        }

        private ObservableCollection<GraphSeriesDataPoint> items = new ObservableCollection<GraphSeriesDataPoint>();

    }

    public class GraphSeriesDataPoint {

        public string date { get; set; }

        public double amount { get; set; }

        public GraphSeriesDataPoint(string dt, double amt) {
            date = dt;
            amount = amt;

        }

    }

}