<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:600px;height:250px;margin:20px"></div>
<script>var chart = new dhtmlXChart({
view: "bar",
container: "chartDiv",
value: "#sales#",
label: "#sales#",
color: "#color#",
radius: 0,
width: 40,
tooltip: {
template: "#sales#";
},
xAxis: {
title: "Sales per year",
template: "'#year#",
lines: false;
},
padding: {
left: 10,
right: 10,
top: 50;
}
});
chart.parse(dataset_colors, "json");
</script>