0
你想一些幫助,我不能離開的格式才能使用highchart生成一個圖表,格式化數據
執行下面的查詢數據庫:
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);
}
結果返回到JSON
return Json(data, JsonRequestBehavior.AllowGet);
而圖形僅僅是這個樣子,
感謝您的幫助。 – rysahara
@Mark:請幫助我在我的[問題在這裏](http://stackoverflow.com/questions/27983248/need-help-in-plotting-a-chart-using-highcharts-in-angularjs) – abi1964