<script src="../../codebase/dhtmlxchart.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxchart.css">
<script src="../common/testdata.js"></script>
<script>window.onload = function() {
var chart = new dhtmlXChart({
view: "spline",
container: "chart",
value: "#sales#",
item: {
borderColor: "#ffffff",
color: "#000000";
},
line: {
color: "#ff9900",
width: 3;
},
xAxis: {
template: "'#year#";
},
offset: 0,
yAxis: {
start: 0,
end: 100,
step: 10,
template: function(obj) {
return (obj % 20 ? "": obj);
}
}
});
chart.parse(dataset, "json");
}
</script>
<div id="chart" style="width:600px;height:250px;border:1px solid #A4BED4;"></div></td>