Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
157 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>Long polling lost clients</title> | ||
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | ||
</head> | ||
<body> | ||
<div id="visualization"></div> | ||
<script type="text/javascript"> | ||
function drawChart() { | ||
var data = new google.visualization.DataTable(); | ||
|
||
data.addColumn('number', 'X'); | ||
data.addColumn('number', 'Beseda'); | ||
data.addColumn('number', 'Juggernaut'); | ||
|
||
data.addRow([1000, 0, 0]); | ||
data.addRow([2500, 0, 628]); | ||
data.addRow([5000, 0, 3000]); | ||
data.addRow([7500, 0, 7500]); | ||
data.addRow([10000, 0, 10000]); | ||
data.addRow([12500, 0, 12500]); | ||
data.addRow([15000, 0, 15000]); | ||
data.addRow([20000, 0, 20000]); | ||
data.addRow([25000, 0, 25000]); | ||
data.addRow([30000, 0, 30000]); | ||
data.addRow([40000, 0, 40000]); | ||
|
||
// Create and draw the visualization. | ||
var chart = new google.visualization.ScatterChart(document.getElementById('visualization')); | ||
chart.draw(data, { title: 'Long polling lost clients', | ||
lineWidth: 2, | ||
pointSize: 0, | ||
width: 1024, height: 640, | ||
vAxis: {title: "Lost clients"}, | ||
hAxis: {title: "Connected clients"}} | ||
); | ||
}; | ||
|
||
google.load('visualization', '1', { 'packages' : [ 'corechart' ] }); | ||
google.setOnLoadCallback(drawChart); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>WebSocket lost clients</title> | ||
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | ||
</head> | ||
<body> | ||
<div id="visualization"></div> | ||
<script type="text/javascript"> | ||
function drawChart() { | ||
var data = new google.visualization.DataTable(); | ||
|
||
data.addColumn('number', 'X'); | ||
data.addColumn('number', 'Beseda'); | ||
data.addColumn('number', 'Juggernaut'); | ||
|
||
data.addRow([2500, 0, 0]); | ||
data.addRow([5000, 0, 0]); | ||
data.addRow([7500, 0,0]); | ||
data.addRow([10000, 0, 0]); | ||
data.addRow([12500, 0, 4]); | ||
data.addRow([15000, 0, 189]); | ||
data.addRow([20000, 0, 2000]); | ||
data.addRow([25000, 213, 3504]); | ||
data.addRow([30000, 3000, 6300]); | ||
data.addRow([40000, 13000, 13000]); | ||
|
||
// Create and draw the visualization. | ||
var chart = new google.visualization.ScatterChart(document.getElementById('visualization')); | ||
chart.draw(data, { title: 'WebSocket lost clients', | ||
lineWidth: 2, | ||
pointSize: 0, | ||
width: 1024, height: 640, | ||
vAxis: { title: "Lost clients" }, | ||
hAxis: { title: "Connected clients" }} | ||
); | ||
}; | ||
|
||
google.load('visualization', '1', { 'packages' : [ 'corechart' ] }); | ||
google.setOnLoadCallback(drawChart); | ||
</script> | ||
</body> | ||
</html> |