<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>
<div id="chartDiv" style="width:400px;height:250px;border:1px solid #A4BED4;margin:20px"></div>
<script>var barChart1 = new dhtmlXChart({
view: "bar",
container: "chartDiv",
value: "#sales#",
color: "#color#",
barWidth: 30,
radius: 0,
tooltip: {
template: "#sales#";
},
xAxis: {
template: "'#year#",
title: "Year";
},
yAxis: {
start: 0,
end: 100,
step: 10,
title: "Profit";
},
origin: 30;
});
barChart1.parse(dataset_colors, "json");
</script>