codecraftai-integration-runtime 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccai/integrationruntime/__init__.py +27 -0
- ccai/integrationruntime/entrypoints.py +59 -0
- ccai/integrationruntime/initialize.py +100 -0
- ccai/integrationruntime/integratedtestjob.py +100 -0
- ccai/integrationruntime/integrationruntimedefaulttypefactory.py +51 -0
- ccai/integrationruntime/py.typed +0 -0
- ccai/integrationruntime/results/__init__.py +13 -0
- ccai/integrationruntime/results/concentrators/__init__.py +13 -0
- ccai/integrationruntime/results/concentrators/progressconcentratorservice.py +526 -0
- ccai/integrationruntime/results/recorders/__init__.py +22 -0
- ccai/integrationruntime/results/recorders/integrationjsonresultrecorder.py +126 -0
- ccai/integrationruntime/results/recorders/streamingresultrecorder.py +271 -0
- ccai/integrationruntime/results/streaming/__init__.py +25 -0
- ccai/integrationruntime/results/streaming/resultstreamer.py +581 -0
- ccai/integrationruntime/runtimeoutputcontext.py +68 -0
- ccai/integrationruntime/runtimerunmetadata.py +165 -0
- ccai/integrationruntime/templates/v2/static/images/test-report-banner-background-image.png +0 -0
- ccai/integrationruntime/templates/v2/static/javascript/d3.v7.js +20625 -0
- ccai/integrationruntime/templates/v2/static/javascript/icon-components.js +510 -0
- ccai/integrationruntime/templates/v2/static/javascript/mojo-components.js +1417 -0
- ccai/integrationruntime/templates/v2/static/javascript/prism.js +1789 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-accessibility.js +704 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-comparison.js +1287 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-components.js +3499 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-helpers.js +426 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-responsive.js +493 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary.js +1128 -0
- ccai/integrationruntime/templates/v2/static/javascript/webcomponent-helpers.js +112 -0
- ccai/integrationruntime/templates/v2/static/styles/branding-theme.css +144 -0
- ccai/integrationruntime/templates/v2/static/styles/icon-styles.css +9 -0
- ccai/integrationruntime/templates/v2/static/styles/mojo-components.css +384 -0
- ccai/integrationruntime/templates/v2/static/styles/prism.css +143 -0
- ccai/integrationruntime/templates/v2/static/styles/tabs-responsive.css +186 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-accessibility.css +413 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-comparison.css +746 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-responsive.css +679 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary.css +1631 -0
- ccai/integrationruntime/templates/v2/tabs/tab-data.html +870 -0
- ccai/integrationruntime/templates/v2/tabs/tab-images.html +110 -0
- ccai/integrationruntime/templates/v2/tabs/tab-logs.html +594 -0
- ccai/integrationruntime/templates/v2/tabs/tab-sounds.html +112 -0
- ccai/integrationruntime/templates/v2/tabs/tab-timeseries.html +368 -0
- ccai/integrationruntime/templates/v2/tabs/tab-videos.html +372 -0
- ccai/integrationruntime/templates/v2/testsummary.html +81 -0
- codecraftai_integration_runtime-1.3.0.dist-info/METADATA +73 -0
- codecraftai_integration_runtime-1.3.0.dist-info/RECORD +48 -0
- codecraftai_integration_runtime-1.3.0.dist-info/WHEEL +4 -0
- codecraftai_integration_runtime-1.3.0.dist-info/licenses/LICENSE.md +204 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!--
|
|
4
|
+
__author__ = "Myron Walker"
|
|
5
|
+
__copyright__ = "Copyright 2025, Code Craft AI LLC"
|
|
6
|
+
-->
|
|
7
|
+
<head>
|
|
8
|
+
<title>Sounds</title>
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-helpers.js"></script>
|
|
12
|
+
<link rel="stylesheet" href="/static/v2/styles/tabs-responsive.css" ></link>
|
|
13
|
+
|
|
14
|
+
<style>
|
|
15
|
+
|
|
16
|
+
.page-style {
|
|
17
|
+
margin: 0px;
|
|
18
|
+
padding: 10px;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.flex-container {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
width: auto;
|
|
27
|
+
height: auto;
|
|
28
|
+
gap: 15px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.item-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.item-label {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 30px;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.item-content {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.item-container audio {
|
|
50
|
+
width: 100%;
|
|
51
|
+
max-width: 400px;
|
|
52
|
+
min-width: 200px;
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
|
|
56
|
+
<script type="text/javascript">
|
|
57
|
+
|
|
58
|
+
var g_items_ext_list = ["mp3", "wav"]
|
|
59
|
+
var g_items = [];
|
|
60
|
+
|
|
61
|
+
async function refresh_items() {
|
|
62
|
+
var itemsContainerEl = document.getElementById('flex-container');
|
|
63
|
+
|
|
64
|
+
for (var findex in g_items) {
|
|
65
|
+
var filename = g_items[findex];
|
|
66
|
+
|
|
67
|
+
g_items.push(filename);
|
|
68
|
+
|
|
69
|
+
var containerEl = document.createElement("div");
|
|
70
|
+
containerEl.classList.add("item-container");
|
|
71
|
+
|
|
72
|
+
var headerEl = document.createElement('span');
|
|
73
|
+
headerEl.style.width = "100%";
|
|
74
|
+
headerEl.innerHTML = filename;
|
|
75
|
+
|
|
76
|
+
containerEl.appendChild(headerEl);
|
|
77
|
+
|
|
78
|
+
var contentEl = document.createElement('audio');
|
|
79
|
+
contentEl.setAttribute("controls", "true");
|
|
80
|
+
contentEl.setAttribute("src", filename);
|
|
81
|
+
|
|
82
|
+
containerEl.appendChild(contentEl);
|
|
83
|
+
|
|
84
|
+
itemsContainerEl.appendChild(containerEl);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async function refresh_page() {
|
|
89
|
+
fetch_items(g_items_ext_list).then((items) => {
|
|
90
|
+
g_items = items;
|
|
91
|
+
|
|
92
|
+
refresh_items();
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
refresh_page().then(function() {
|
|
97
|
+
console.log("Page loaded");
|
|
98
|
+
}, function(err) {
|
|
99
|
+
console.log("ERROR:\n" + err);
|
|
100
|
+
console.log(err.stack)
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
</script>
|
|
104
|
+
</head>
|
|
105
|
+
|
|
106
|
+
<body class="page-style">
|
|
107
|
+
<h3>Sounds</h3>
|
|
108
|
+
<div id='flex-container' class='flex-container'>
|
|
109
|
+
</div>
|
|
110
|
+
</body>
|
|
111
|
+
|
|
112
|
+
</html>
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!--
|
|
4
|
+
__author__ = "Myron Walker"
|
|
5
|
+
__copyright__ = "Copyright 2025, Code Craft AI LLC"
|
|
6
|
+
|
|
7
|
+
NOTES: To use this html page to render a Time Series Chart, you need to create a file in the same directory
|
|
8
|
+
that is named 'chartsummary.json'. This file provides information about the data series to present
|
|
9
|
+
and where to find the data. The following is an example of this file.
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"title" : "Example Time Series Chart",
|
|
13
|
+
"axis": {
|
|
14
|
+
"y": { "label": "iops"},
|
|
15
|
+
"x": { "label": "timestamp"}
|
|
16
|
+
},
|
|
17
|
+
"series" : [
|
|
18
|
+
{
|
|
19
|
+
"name": "node-1",
|
|
20
|
+
"src": "./series/write-perf-iops-node-1.jsos",
|
|
21
|
+
"fields": {
|
|
22
|
+
"time": "time",
|
|
23
|
+
"value": "value"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "node-2",
|
|
28
|
+
"src": "./series/write-perf-iops-node-2.jsos",
|
|
29
|
+
"fields": {
|
|
30
|
+
"time": "time",
|
|
31
|
+
"value": "value"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
The series files are in the form of 'jsos' files that contain a series of data samples seperated by the
|
|
38
|
+
ASCII record seperator character ''. The fields of each sample must provide a time, and value that
|
|
39
|
+
should be represented. The samples should be compatible across the series that are specified.
|
|
40
|
+
|
|
41
|
+
{ "time": "2024-03-01T23:27:10", "value": 1473.15 }
|
|
42
|
+
|
|
43
|
+
-->
|
|
44
|
+
<head>
|
|
45
|
+
<title>Time Series Chart</title>
|
|
46
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
|
|
47
|
+
<link rel="stylesheet" href="/static/v2/styles/tabs-responsive.css" ></link>
|
|
48
|
+
<style>
|
|
49
|
+
.page-style {
|
|
50
|
+
margin: 0px;
|
|
51
|
+
padding: 10px;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.items-container {
|
|
57
|
+
display: flex;
|
|
58
|
+
width: auto;
|
|
59
|
+
height: auto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
img {
|
|
63
|
+
width: 100px;
|
|
64
|
+
height: auto;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#chart {
|
|
68
|
+
width: 100%;
|
|
69
|
+
overflow-x: auto;
|
|
70
|
+
-webkit-overflow-scrolling: touch;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#chart svg {
|
|
74
|
+
max-width: 100%;
|
|
75
|
+
height: auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (max-width: 768px) {
|
|
79
|
+
h3 {
|
|
80
|
+
font-size: 1.2em;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
|
|
85
|
+
<script type="text/javascript" src="/static/v2/javascript/d3v7.js" ></script>
|
|
86
|
+
|
|
87
|
+
<script type="text/javascript">
|
|
88
|
+
|
|
89
|
+
const g_series_colors = [
|
|
90
|
+
"blue",
|
|
91
|
+
"blueviolet",
|
|
92
|
+
"burlywood",
|
|
93
|
+
"cadetblue",
|
|
94
|
+
"chocolate",
|
|
95
|
+
"coral",
|
|
96
|
+
"cornflowerblue",
|
|
97
|
+
"crimson",
|
|
98
|
+
"cyan",
|
|
99
|
+
"darkgreen",
|
|
100
|
+
"darkkhaki",
|
|
101
|
+
"darkmagenta",
|
|
102
|
+
"darkolivegreen",
|
|
103
|
+
"darkorange",
|
|
104
|
+
"darkorchid",
|
|
105
|
+
"darkred",
|
|
106
|
+
"darksalmon",
|
|
107
|
+
"darkslateblue",
|
|
108
|
+
"darkslategray",
|
|
109
|
+
"deeppink",
|
|
110
|
+
"gold",
|
|
111
|
+
"goldenrod",
|
|
112
|
+
"green",
|
|
113
|
+
"greenyellow",
|
|
114
|
+
"hotpink",
|
|
115
|
+
"skyblue",
|
|
116
|
+
"tan",
|
|
117
|
+
"aqua",
|
|
118
|
+
"aquamarine"
|
|
119
|
+
];
|
|
120
|
+
|
|
121
|
+
const g_color_table = {};
|
|
122
|
+
|
|
123
|
+
async function fetch_json(url) {
|
|
124
|
+
var promise = new Promise((resolve, reject) => {
|
|
125
|
+
var xmlhttp = new XMLHttpRequest();
|
|
126
|
+
|
|
127
|
+
xmlhttp.onreadystatechange = function () {
|
|
128
|
+
if (this.readyState == 4) {
|
|
129
|
+
if (this.status == 200) {
|
|
130
|
+
var robj = JSON.parse(this.responseText);
|
|
131
|
+
resolve(robj);
|
|
132
|
+
} else {
|
|
133
|
+
reject(this.statusText);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
xmlhttp.onerror = function () {
|
|
139
|
+
reject(this.statusText);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
xmlhttp.open("GET", url, true);
|
|
143
|
+
xmlhttp.send();
|
|
144
|
+
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
return promise;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
async function fetch_json_stream(url) {
|
|
152
|
+
var promise = new Promise((resolve, reject) => {
|
|
153
|
+
var xmlhttp = new XMLHttpRequest();
|
|
154
|
+
|
|
155
|
+
xmlhttp.onreadystatechange = function () {
|
|
156
|
+
if (this.readyState == 4) {
|
|
157
|
+
if (this.status == 200) {
|
|
158
|
+
var json_objects = [];
|
|
159
|
+
|
|
160
|
+
var split_responses = this.responseText.split("\x1e");
|
|
161
|
+
var srlength = split_responses.length;
|
|
162
|
+
while (srlength > 0) {
|
|
163
|
+
var ritem = split_responses.pop().trim();
|
|
164
|
+
if (ritem.length > 0) {
|
|
165
|
+
var robj = JSON.parse(ritem);
|
|
166
|
+
json_objects.unshift(robj);
|
|
167
|
+
}
|
|
168
|
+
srlength = srlength - 1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
resolve(json_objects);
|
|
172
|
+
} else {
|
|
173
|
+
reject(this.statusText);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
xmlhttp.onerror = function () {
|
|
179
|
+
reject(this.statusText);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
xmlhttp.open("GET", url, true);
|
|
183
|
+
xmlhttp.send();
|
|
184
|
+
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
return promise;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
async function load_chartseries_from_sources(seriesSources) {
|
|
192
|
+
|
|
193
|
+
chartSeries = [];
|
|
194
|
+
|
|
195
|
+
for (let index = 0; index < seriesSources.length; index++) {
|
|
196
|
+
source = seriesSources[index];
|
|
197
|
+
|
|
198
|
+
var colorIndex = index % g_series_colors.length;
|
|
199
|
+
var color = g_series_colors[colorIndex];
|
|
200
|
+
|
|
201
|
+
var srcName = source["name"];
|
|
202
|
+
var srcUrl = source["src"];
|
|
203
|
+
|
|
204
|
+
g_color_table[srcName] = color;
|
|
205
|
+
|
|
206
|
+
var timeField = "time";
|
|
207
|
+
var valueField = "value";
|
|
208
|
+
|
|
209
|
+
if ("fields" in source) {
|
|
210
|
+
fields = source["fields"];
|
|
211
|
+
|
|
212
|
+
if ("time" in fields) {
|
|
213
|
+
timeField = fields["time"];
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if ("value" in fields) {
|
|
217
|
+
valueField = fields["value"]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
var samples = await fetch_json_stream(srcUrl);
|
|
222
|
+
|
|
223
|
+
for (let sindex = 0; sindex < samples.length; sindex++){
|
|
224
|
+
var sval = samples[sindex];
|
|
225
|
+
|
|
226
|
+
chartSeries.push({
|
|
227
|
+
"series": srcName,
|
|
228
|
+
"time": Date.parse(sval[timeField]),
|
|
229
|
+
"value": Math.round(sval[valueField])
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return chartSeries;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
var chartTitle = null;
|
|
240
|
+
var chartSummary = null;
|
|
241
|
+
var chartSeries = null;
|
|
242
|
+
var chartYName = null;
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
function lookupLineColor(group, index) {
|
|
246
|
+
gname = group[index][2];
|
|
247
|
+
var color = g_color_table[gname];
|
|
248
|
+
return color;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function render_chart() {
|
|
252
|
+
|
|
253
|
+
// Specify the chart’s dimensions.
|
|
254
|
+
const width = 2000;
|
|
255
|
+
const height = 400;
|
|
256
|
+
const marginTop = 20;
|
|
257
|
+
const marginRight = 20;
|
|
258
|
+
const marginBottom = 30;
|
|
259
|
+
const marginLeft = 30;
|
|
260
|
+
|
|
261
|
+
const timeExtent = d3.extent(chartSeries, d => d.time)
|
|
262
|
+
|
|
263
|
+
// Create the positional scales.
|
|
264
|
+
const x = d3.scaleUtc()
|
|
265
|
+
.domain(timeExtent)
|
|
266
|
+
.range([marginLeft, width - marginRight]);
|
|
267
|
+
|
|
268
|
+
const xticks = x.ticks();
|
|
269
|
+
x.tickFormat(xticks.length, "%m-%dT%H:%M")
|
|
270
|
+
|
|
271
|
+
const maxy = d3.max(chartSeries, d => d.value);
|
|
272
|
+
|
|
273
|
+
const y = d3.scaleLinear()
|
|
274
|
+
.domain([0, maxy]).nice()
|
|
275
|
+
.range([height - marginBottom, marginTop]);
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
// Create the SVG container.
|
|
279
|
+
const chart = d3.select("#chart");
|
|
280
|
+
|
|
281
|
+
const svg = chart.append("svg")
|
|
282
|
+
.attr("width", width)
|
|
283
|
+
.attr("height", height)
|
|
284
|
+
.attr("viewBox", [0, 0, width, height])
|
|
285
|
+
.attr("style", "max-width: 100%; height: auto; overflow: visible; font: 10px sans-serif;");
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
// Add the horizontal axis.
|
|
289
|
+
svg.append("g")
|
|
290
|
+
.attr("transform", `translate(0,${height - marginBottom})`)
|
|
291
|
+
.call(d3.axisBottom(x).ticks(width / 80).tickSizeOuter(0));
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
// Add the vertical axis.
|
|
295
|
+
svg.append("g")
|
|
296
|
+
.attr("transform", `translate(${marginLeft},0)`)
|
|
297
|
+
.call(d3.axisLeft(y))
|
|
298
|
+
.call(g => g.select(".domain").remove())
|
|
299
|
+
.call(g => g.append("text")
|
|
300
|
+
.attr("x", -marginLeft)
|
|
301
|
+
.attr("y", 10)
|
|
302
|
+
.attr("fill", "currentColor")
|
|
303
|
+
.attr("text-anchor", "start")
|
|
304
|
+
.text("↑ " + chartYName));
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
// Compute the points in pixel space as [x, y, z], where z is the name of the series.
|
|
308
|
+
const points = chartSeries.map((d) => [x(d.time), y(d.value), d.series]);
|
|
309
|
+
|
|
310
|
+
// Group the points by series.
|
|
311
|
+
const groups = d3.rollup(points, v => Object.assign(v, {z: v[0][2]}), d => d[2]);
|
|
312
|
+
|
|
313
|
+
// Draw the lines.
|
|
314
|
+
const line = d3.line();
|
|
315
|
+
const path = svg.append("g")
|
|
316
|
+
.attr("fill", "none")
|
|
317
|
+
.attr("stroke-width", 1.5)
|
|
318
|
+
.attr("stroke-linejoin", "round")
|
|
319
|
+
.attr("stroke-linecap", "round")
|
|
320
|
+
.selectAll("path")
|
|
321
|
+
.data(groups.values())
|
|
322
|
+
.join("path")
|
|
323
|
+
.style("stroke", lookupLineColor)
|
|
324
|
+
.style("mix-blend-mode", "multiply")
|
|
325
|
+
.attr("d", line);
|
|
326
|
+
|
|
327
|
+
// Add an invisible layer for the interactive tip.
|
|
328
|
+
const dot = svg.append("g")
|
|
329
|
+
.attr("display", "none");
|
|
330
|
+
|
|
331
|
+
dot.append("circle")
|
|
332
|
+
.attr("r", 2.5);
|
|
333
|
+
|
|
334
|
+
dot.append("text")
|
|
335
|
+
.attr("text-anchor", "middle")
|
|
336
|
+
.attr("y", -8);
|
|
337
|
+
|
|
338
|
+
const node = svg.node();
|
|
339
|
+
|
|
340
|
+
return
|
|
341
|
+
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
async function render_dynamic_content() {
|
|
346
|
+
|
|
347
|
+
chartSummary = await fetch_json("chartsummary.json");
|
|
348
|
+
|
|
349
|
+
chartTitle = chartSummary["title"];
|
|
350
|
+
seriesSources = chartSummary["series"];
|
|
351
|
+
|
|
352
|
+
var titleElement = document.getElementById("title");
|
|
353
|
+
titleElement.innerHTML = chartTitle;
|
|
354
|
+
|
|
355
|
+
chartSeries = await load_chartseries_from_sources(seriesSources);
|
|
356
|
+
|
|
357
|
+
render_chart()
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
</script>
|
|
361
|
+
</head>
|
|
362
|
+
<body class="page-style" onload="render_dynamic_content()">
|
|
363
|
+
<h3 id="title"></h3>
|
|
364
|
+
<div id='chart'>
|
|
365
|
+
|
|
366
|
+
</div>
|
|
367
|
+
</body>
|
|
368
|
+
</html>
|