projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d13cca
)
Services : meilleur échelle verticale pour la bande passante
author
Lunar
<lunar@anargeek.net>
Sun, 17 Nov 2013 21:55:18 +0000
(22:55 +0100)
committer
Lunar
<lunar@anargeek.net>
Sun, 17 Nov 2013 21:55:18 +0000
(22:55 +0100)
Services/Participation.html
patch
|
blob
|
history
diff --git
a/Services/Participation.html
b/Services/Participation.html
index 56ae6db7d58c9be788f0b7beb07f2986567819e1..0d34eb042b6c138274fbc3b2f8fbd9dece82d1d9 100644
(file)
--- a/
Services/Participation.html
+++ b/
Services/Participation.html
@@
-164,12
+164,12
@@
new ExitPieDrawer().draw();
<script type="text/javascript">
<script type="text/javascript">
-var margin = {top: 50, right: 90, bottom: 90, left:
9
0},
+var margin = {top: 50, right: 90, bottom: 90, left:
10
0},
width = 600 - margin.left - margin.right,
height = 300 - margin.top - margin.bottom;
var parseTime = d3.time.format("%Y-%m-%d %H:%M:%S").parse,
width = 600 - margin.left - margin.right,
height = 300 - margin.top - margin.bottom;
var parseTime = d3.time.format("%Y-%m-%d %H:%M:%S").parse,
- bwFormatter = d3.format(".
2
r");
+ bwFormatter = d3.format(".
1
r");
var x = d3.time.scale()
.range([0, width]);
var x = d3.time.scale()
.range([0, width]);
@@
-186,7
+186,7
@@
var xAxis = d3.svg.axis()
var yAxis = d3.svg.axis()
.scale(y)
.orient("left")
var yAxis = d3.svg.axis()
.scale(y)
.orient("left")
- .tickFormat(function(d) { return bwFormatter(d
* 8 / (1000 * 1000)) + "
Mbit/s"; });
+ .tickFormat(function(d) { return bwFormatter(d
) + "
Mbit/s"; });
var area = d3.svg.area()
.x(function(d) { return x(d.date); })
var area = d3.svg.area()
.x(function(d) { return x(d.date); })
@@
-228,11
+228,11
@@
function draw_bandwidth_graph(raw_data, selector, direction, period) {
var i = 0;
for (var current = minTime; current <= maxTime; current = d3.time.second.offset(current, history.interval)) {
if (first <= current && current <= last) {
var i = 0;
for (var current = minTime; current <= maxTime; current = d3.time.second.offset(current, history.interval)) {
if (first <= current && current <= last) {
- values.push({ date: current, y: history.factor * history.values[i++] });
+ values.push({ date: current, y: history.factor * history.values[i++]
* 8 / 1000000
});
}
}
}
}
- maxTotalBandwidth = maxTotalBandwidth +
history.factor * d3.max(history.values
);
+ maxTotalBandwidth = maxTotalBandwidth +
d3.max(values.map(function(d) { return d.y; })
);
return {
fingerprint: fingerprint,
return {
fingerprint: fingerprint,