public AutoScrolling()
        {
            InitializeComponent();

            viewModel = Chart.BindingContext as AutoScrollingViewModel;
            viewModel.LoadData();
            (Chart.SecondaryAxis as NumericalAxis).Maximum = 100;
            (Chart.SecondaryAxis as NumericalAxis).Minimum = 0;
        }
        public AutoScrolling()
        {
            InitializeComponent();

            viewModel = Chart.BindingContext as AutoScrollingViewModel;
            viewModel.LoadData();

            if (Device.RuntimePlatform == Device.macOS || Device.RuntimePlatform == Device.UWP)
            {
                duplicateAxis.IsVisible = true;
            }
        }