Posts

Showing posts from December, 2017

Display Google Donut Chart in MVC C# Ajax Services

Image
In this Section, We See about Display Google Donut Charts Using MVC C# Ajax Services. Controller: using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Mvc; namespace Chartsprojects.Controllers {     public class GoogleChartsController : Controller     {               public ActionResult GoogleDonutCharts()         {             return View();         }         public class Det         {             public int Id;             public String Name;             public decimal yVal;         }         public JsonResult DispRec()         {             SqlConnection cn = new SqlConnection ( ConfigurationManager .ConnectionStrings[ "blogger" ].ToString());             List < Det > obj = new List < Det >();             cn.Open();             DataTab

Display Google Pie Chart in MVC C# Ajax Services

Image
     In The Section, We See about Google Pie  Chart Loading Data From S QL Server Database. Using MVC Ajax Service t o Get The Data and Load to Google PieCharts. SQL Table: Controller  using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Mvc; namespace Chartsprojects.Controllers {     public class GoogleChartsController : Controller     {         public ActionResult GooglePieCharts()         {             return View();         }          public class Det         {             public int Id;             public String Name;             public decimal yVal;         }         public JsonResult DispRec()         {             SqlConnection cn = new SqlConnection ( ConfigurationManager .ConnectionStrings[ "blogger" ].ToString());             List < D