4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
<title>Highstock Example</title>
7
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
8
<script type="text/javascript">
10
var seriesOptions = [],
13
names = [14, 13, 12, 11, 10],
14
colors = Highcharts.getOptions().colors;
16
$.each(names, function(i, name) {
18
$.getJSON('http://dev4.helioviewer.org/timeline/'+ name +'.txt', function(data) {
26
// As we're loading the data asynchronously, we don't know what order it will arrive. So
27
// we keep a counter and create the chart when all the data is loaded.
30
if (seriesCounter == names.length) {
38
// create the chart when all data is loaded
39
function createChart() {
41
$('#container').highcharts('StockChart', {
65
pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',
77
<script src="../../js/highstock.js"></script>
78
<script src="../../js/modules/exporting.js"></script>
80
<div id="container" style="height: 500px; min-width: 600px"></div>