<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>chart = new dhtmlXChart({
view: "scatter",
container: "chartDiv",
value: "#b#",
xValue: "#a#",
yAxis: {
title: "Value B";
},
xAxis: {
title: "Value A";
},
tooltip: {
template: "#a# - #b#";
},
item: {
radius: 5,
borderColor: "#f38f00",
borderWidth: 1,
color: "#ff9600",
type: "d",
shadow: true;
}
});
chart.parse(scatter_dataset, "json");
</script>