TChart.js是轻量级的(~ 5 kb大小)JavaScript图表插件,生成一个canvas柱状图或折线图js对象数组。数据格式let data = [ { label: "Jan", value: 1 }, { label: "Feb", value: 2 }, { label: "March", value: 3 }, { label: "April", value: 4 }, { label: "May", value: 5 }, { label: "June", value: 6 }, { label: "July", value: 7 }, { label: "Aug", value: 8 }, { label: "Sep", value: 9 } ];实例化let myChart = new TChart("example", 600, 450, data);曲线图myChart.drawLineChart()柱状图myChart.drawBarChart()
preview Points Download 6毛Download Share Download
未经允许不得转载: ICode联盟 » Plugin Special Effects » HTML5统计图表插件TChart.js