コード例 #1
0
        public IActionResult Growth(string metric, string option)
        {
            PlotViewModel model = _covidService.GetGrowthViewModel(metric);

            ViewData["Metric"]          = metric;
            ViewData["Method"]          = System.Reflection.MethodBase.GetCurrentMethod().Name;
            ViewData["Title"]           = "Growth";
            ViewData["YLabel"]          = metric + " per day";
            ViewData["TooltipDecimals"] = 0;
            ViewData["YMin"]            = 0.1;
            ViewData["YType"]           = "linear";
            ViewData["YTickInterval"]   = 100;
            ViewData["XLabel"]          = "Days from 10 " + metric;

            return(View("Plot", model));
        }