Create scatter chart
Description
The following code shows how to create scatter chart.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!-- ww w . j a v a2 s. c o m-->
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'scatter',
width: 200,
height: 200
},
xAxis: {
tickInterval: 1
},
series: [{
data: [[0,1], [1,1], [2,1], [3,1], [4,1], [5,1]]
},{
data: [[0,2],[2,2]]
},{
data: [[1,3],[3,3]]
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px; width: 500px"></div>
</body>
</html>