官方地址: http://cyberpython.github.com/AwesomeChartJS/
<div id="canvas1" width="300" height="300"></div>
js代码
<script type="application/javascript" src="awesomechart.js"></script>
<script type="application/javascript">
function drawMyChart(){
if(!!document.createElement('canvas').getContext){ //check that the canvas
// element is supported
var mychart = new AwesomeChart('canvas1');
mychart.title = "Product Sales - 2010";
mychart.data = [1532, 3251, 3460, 1180, 6543];
mychart.labels = ["Desktops", "Laptops", "Netbooks", "Tablets", "Smartphones"];
mychart.draw();
}
}
window.onload = drawMyChart;
</script>
新发现的一个js库,有时间大家一起研究研究
![奋斗](http://static.blog.csdn.net/xheditor/xheditor_emot/default/struggle.gif)