jjzjj

examChart

全部标签

javascript - Chart.js 使用日期创建折线图

我似乎无法让Chart.js处理日期。我尝试了很多不同的方法:letexamChart=document.getElementById("examChart").getContext("2d");letexamLineChart=newChart(examChart,{type:"line",data:[{t:newDate("2015-3-1513:3"),y:12},{t:newDate("2015-3-2513:2"),y:21},{t:newDate("2015-4-2514:12"),y:32}],options:{label:"placeholder"}});和:letex