54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Highstock Example</title>
|
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
|
|
<style type="text/css">
|
|
${demo.css}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
// Notice that the dataset has missing data
|
|
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) {
|
|
|
|
$('#container').highcharts('StockChart', {
|
|
|
|
chart: {
|
|
type: 'columnrange'
|
|
},
|
|
|
|
rangeSelector: {
|
|
selected: 2
|
|
},
|
|
|
|
title: {
|
|
text: 'Temperature variation by day'
|
|
},
|
|
|
|
tooltip: {
|
|
valueSuffix: '°C'
|
|
},
|
|
|
|
series: [{
|
|
name: 'Temperatures',
|
|
data: data
|
|
}]
|
|
|
|
});
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script src="../../js/highstock.js"></script>
|
|
<script src="../../js/highcharts-more.js"></script>
|
|
<script src="../../js/modules/exporting.js"></script>
|
|
|
|
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
|
|
|
|
</body>
|
|
</html>
|