im follow the next amcharts : https://www.amcharts.com/demos/simple-column-chart/ to implement in my project, but my question now is how to insert data from database in the "chart.data = [{ "
i already have in controller this :
public JsonResult GetChartData()
{
var model = _context.TBL_Objectives_Task
.ToList()
.Select(m => new Objectives_TaskModel
{
id= m.id,
name= m.name,
decimalvalue = m.decimalvalue
}).OrderBy(j => j.Pace).ToList();
return Json(model.ToArray(), JsonRequestBehavior.AllowGet);
}
and then i want to pass this to the Amcharts