/
chart-template.html
32 lines (28 loc) · 972 Bytes
/
chart-template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('number', 'Concurrency (threads)');
::column-defs::
data.addRows([
::data::
]);
var options = {
title: 'Parsing Throughput (higher is better)',
curveType: 'function',
hAxis: { title: 'Concurrency (threads)' },
vAxis: { title: 'Throughput (documents)' }
};
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 600px; height: 500px;"></div>
</body>
</html>