~jstys-z/helioviewer.org/timeline

« back to all changes in this revision

Viewing changes to timeline/Highstock-1.3.10/examples/markers-only/index.htm

  • Committer: Jeff Stys
  • Date: 2014-04-21 12:46:26 UTC
  • Revision ID: jstys@sesda3.com-20140421124626-2332pb2dyjc33jxi
Proof-of-concept version of Data Coverage Timeline using Highchart/Highstock javascript library.  Changes to getDataCoverage API in order to feed the necessary data to the Timeline

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML>
 
2
<html>
 
3
        <head>
 
4
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
5
                <title>Highstock Example</title>
 
6
 
 
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">
 
9
$(function() {
 
10
        $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(data) {
 
11
 
 
12
                // Create the chart
 
13
                $('#container').highcharts('StockChart', {
 
14
                        
 
15
 
 
16
                        rangeSelector : {
 
17
                                selected : 2
 
18
                        },
 
19
 
 
20
                        title : {
 
21
                                text : 'AAPL Stock Price'
 
22
                        },
 
23
 
 
24
                        series : [{
 
25
                                name : 'AAPL Stock Price',
 
26
                                data : data,
 
27
                                lineWidth : 0,
 
28
                                marker : {
 
29
                                        enabled : true,
 
30
                                        radius : 2
 
31
                                },
 
32
                                tooltip: {
 
33
                                        valueDecimals: 2
 
34
                                }
 
35
                        }]
 
36
                });
 
37
        });
 
38
});
 
39
 
 
40
                </script>
 
41
        </head>
 
42
        <body>
 
43
<script src="../../js/highstock.js"></script>
 
44
<script src="../../js/modules/exporting.js"></script>
 
45
 
 
46
<div id="container" style="height: 500px; min-width: 500px"></div>
 
47
        </body>
 
48
</html>