public JsonResult ServerLineChartsData()
        {
            string[] _months = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

            List<ChartSerieViewModel> series = new List<ChartSerieViewModel>();

            for (int i = 0; i < 5; i++)
            {
                decimal d = 2 + i;
                decimal[] _datas = { d, 6.90m, 9.50m, 14.50m, 18.20m, 4.56m, d, 26.50m, 23.30m, 18.30m, 13.90m, d };

                ChartSerieViewModel lineChartSerieViewModel = new ChartSerieViewModel();
                lineChartSerieViewModel.SeriesName = "Tokyo : " + i;
                lineChartSerieViewModel.SeriesDatas = _datas;

                series.Add(lineChartSerieViewModel);
            }

            var model = new LineChartViewModel();

            model.TitleText = "Monthly Average Temperature";
            model.SubTitleText = "Source: WorldClimate.com";
            model.XAxisCategories = _months;
            model.YAxisTitleText = "Temperature (°C)";
            model.TooltipValueSuffix = "°C";
            model.Series = series.ToArray();

            return Json(model, JsonRequestBehavior.AllowGet);
        }
        public JsonResult ServerBarChartsData()
        {
            string[] _categories = { "Apples", "Oranges", "Pears", "Grapes", "Bananas" };

            List<ChartSerieViewModel> series = new List<ChartSerieViewModel>();

            for (int i = 0; i < 3; i++)
            {
                decimal d = 2 + i;
                decimal[] _datas = { d, 3, 4, 7, d };

                ChartSerieViewModel lineChartSerieViewModel = new ChartSerieViewModel();
                lineChartSerieViewModel.SeriesName = "John : " + i;
                lineChartSerieViewModel.SeriesDatas = _datas;

                series.Add(lineChartSerieViewModel);
            }

            var model = new BarChartViewModel();

            model.TitleText = "Stacked column chart";
            model.XAxisCategories = _categories;
            model.YAxisTitleText = "Total fruit consumption";
            model.Series = series.ToArray();

            return Json(model, JsonRequestBehavior.AllowGet);
        }