Example #1
0
        public LineChartPage()
        {
            InitializeComponent();

            ComboBoxController = new ComboBoxController();

            ComboBoxController.FillCountrySelector(cbxCountrySelection);
            ComboBoxController.FillCaseTypeSelector(cbxCaseTypeSelection);

            ChartController = new ChartController();

            SeriesCollection = new SeriesCollection()
            {
                ChartController.GetSeries("Poland", (int)Model.CaseType.Confirmed),
                ChartController.GetSeries("Poland", (int)Model.CaseType.Deaths)
            };

            Labels      = ChartController.GetLabels();
            YFormatter  = value => value.ToString();
            DataContext = this;
        }