Would you like some help I am not able to leave the format to be able to generate a graph using highchart,
Do the following query in the database:
var query = (from ir in db.IRR1235
where ir.cod_levantamento_id == idCodLev
select ir);
foreach (var item in query)
{
object[] values = new object[2];
values[0] = Convert.ToDecimal(item.inicial);
values[1] = Convert.ToDecimal(item.ir);
dataResult.Add(values);
}
return the result to json
return Json(data, JsonRequestBehavior.AllowGet);
But the graph is just like this,