public BindingScatter()
        {
            InitializeComponent();

            ViewModel = new BindingScatterViewModel
            {
                FirstPrimaryValues = new ChartValues<Point>{ new Point(5, 2), new Point(12, 3), new Point(26, 10), new Point(30, 3), new Point(35, 4) },
                SecondPrimaryValues = new ChartValues<Point> { new Point(5, 3), new Point(8, 7), new Point(22, 14), new Point(28, 8), new Point(40, 8) }
            };

            DataContext = this;
        }
        public BindingScatter()
        {
            InitializeComponent();

            ViewModel = new BindingScatterViewModel
            {
                FirstPrimaryValues = new ObservableCollection<double> { 2, 4, double.NaN, 7, 6, 4, 5, 2, 7, 9, 1, 4, 4, 5, 6 },
                FirstSecondaryValues = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, double.NaN, 14, 15 },
                SecondPrimaryValues = new ObservableCollection<double> { 7, 3, 4, 1, 4, 7, 2, 7, 3, 8, 9, 2, 7, 9, 3 },
                SecondSecondaryValues = new[] { 1d, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
            };

            DataContext = this;
        }