Ejemplo n.º 1
0
        public IActionResult GrowthRelative(string metric, string option)
        {
            PlotViewModel model = _covidService.GetRelativeGrowthViewModel(metric, option,
                                                                           ViewModelService.MIN_DEATHS_MILLION);

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

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