在页面上引用dhtmlx的相关js脚本和css文件即可完成安装:
<link href="../../BaseStyle/dhtmlxChart/codebase/dhtmlxchart.css" rel="stylesheet" type="text/css" />
<script src="../../BaseStyle/dhtmlxChart/codebase/dhtmlxchart.js"></script>
aspx页面:
<div id="divZz" class="flot-content" style="width: 650px; height: 500px; margin: 5px; padding: 10px;">
</div>
js页面:
柱状图:
var barChart2;
function loadZz() {
var data = [
{ name:"故障单",number:12},
{ name:"询问单",number:15},
{ name:"确认单",number:15},
];