something like the chart shown here http://techbrij.com/chart-jquery-flot-asp-net-web-api-mvc but ofcourse using the same code above and pushing JSON. if you look at my JSON Response, for example displaying project status vs completion date or number of bugs in a life time of a project.
here is my JSON response:
[{“CompletionDate”:”2014-09-30T00:00:00″,”ProjectStatus”:”behind schedule”,”ProjectName”:”Loans”},{“CompletionDate”:”2014-11-30T00:00:00″,”ProjectStatus”:”On Track”,”ProjectName”:”AppSuite”},{“CompletionDate”:”2014-12-30T00:00:00″,”ProjectStatus”:”Ahead of Schedule”,”ProjectName”:”Dashboard”}]
Hi, sorry i am a beginner with this. i now want to display project data in a line graph like a multiline series or single line using the same script you show above but i seem to have a problem with date and the graph is not displaying. i want to display a chart that can show project status versus completion date. my controller looks like this:
namespace ChartDemo.Controllers
{
public class DashboardController : Controller
{
//
// GET: /Dashboard/
public ActionResult Index()
{
return View();
}
public ContentResult GetData()
{
using (var db = new QualityMatricsEntities1())
{
var result = (from tags in db.Projects
orderby tags.CompletionDate ascending
select new { tags.CompletionDate, tags.ProjectStatus,tags.ProjectName }).ToList();
//return Json(JsonConvert.SerializeObject(result), JsonRequestBehavior.AllowGet);
return Content(JsonConvert.SerializeObject(result), “application/json”);
}
}
}
}
i don’t know if it’s a widget or what but here is the link. click on charts in this page: http://dev.sencha.com/deploy/ext-4.0.1/examples/sandbox/sandbox.html i want to display charts in one page like shown here but of course on a full page.
Hi there,
is it possible to display charts adjacent to each other like a widget type of thing, say two charts above and two below.
Yes it’s working. Thank you so much!
this is the json result when i query the page: http://localhost:3698/Dashboard/GetData- i get the data like so:
“[{\”Title\”:\”Chemistry\”,\”Credits\”:4},{\”Title\”:\”Economics\”,\”Credits\”:3},{\”Title\”:\”Literature\”,\”Credits\”:3}]”
this is the error i get from the console:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3698/__browserLink/requestData/abb9896d4acf454387c218fde6e0fdab
Uncaught TypeError: Cannot read property ‘getTime’ of undefined canvasjs.min.js:76