source: XIOS2/trunk/scripts/index_load.html @ 2429

Last change on this file since 2429 was 2429, checked in by jderouillat, 17 months ago

Backport the XIOS3 system to log the memory consumption (commit ID [2418-2420,2425-2426]) + new files

File size: 2.4 KB
Line 
1
2<head>
3  <script src="https://cdn.anychart.com/releases/8.11.0/js/anychart-base.min.js" type="text/javascript"></script>
4  <script src="https://cdn.anychart.com/releases/8.11.0/js/anychart-stock.min.js"></script>
5
6</head>
7
8<body>
9  <!--
10      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
11
12    <script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
13
14    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js"></script>
15    <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet" type="text/css" />
16
17    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
18    <link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet" type="text/css" />
19
20    <link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
21    <script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
22
23  <div id="container" >
24    <div class="row">
25      <label class="btn btn-primary" for="file">
26        <input type="file" id="file" style="display:none" onchange="$('#upload-file-info').html(this.files[0].name)">
27        Load a JS XIOS memory file
28      </label>
29      <button type="button" class="btn btn-default disabled" id="upload-file-info">...</button>
30    </div>
31  </div>
32  -->
33
34  <div id="container" ></div>
35  <script src="mem_4.js" ></script>
36
37  <script>
38    anychart.onDocumentLoad(function () {
39
40     
41       
42    // create a data table using this data
43    var dataTable = anychart.data.table();
44    dataTable.addData(get_xios_mem_data());
45 
46    mapping_mem = dataTable.mapAs();
47    mapping_mem.addField('value', 2);
48    mapping_event = dataTable.mapAs();
49    mapping_event.addField('value', 1);
50 
51    // create a stock chart
52    var chart = anychart.stock();
53
54    // create a plot on the chart
55    var plot = chart.plot(0);           
56       
57    // create a line series
58    var lineSeries2 = plot.line(mapping_event);
59    lineSeries2.name("Event");
60    var lineSeries1 = plot.line(mapping_mem);
61    lineSeries1.name("Mo");
62       
63    // set the container id
64    chart.container("container");
65 
66    // initiate drawing the chart
67    chart.draw();
68
69
70
71       
72    });
73  </script>
74 
75</body>
Note: See TracBrowser for help on using the repository browser.