[CalendarServer-changes] [12750] CalendarServer/trunk/calendarserver/webadmin/work.xhtml
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 25 14:11:07 PST 2014
Revision: 12750
http://trac.calendarserver.org//changeset/12750
Author: wsanchez at apple.com
Date: 2014-02-25 14:11:07 -0800 (Tue, 25 Feb 2014)
Log Message:
-----------
Start at zero
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/webadmin/work.xhtml
Modified: CalendarServer/trunk/calendarserver/webadmin/work.xhtml
===================================================================
--- CalendarServer/trunk/calendarserver/webadmin/work.xhtml 2014-02-25 20:59:45 UTC (rev 12749)
+++ CalendarServer/trunk/calendarserver/webadmin/work.xhtml 2014-02-25 22:11:07 UTC (rev 12750)
@@ -24,17 +24,17 @@
function init() {
- var data = [4, 8, 15, 16, 23, 42];
+ var data = [0, 0, 0, 0, 0, 0];
/* scale is a function that normalizes a value in data into the range 0-98 */
var scale = d3.scale.linear()
.domain([0, 200])
- .range([0, 98])
+ .range([0, 98]);
var bars = d3.select("#work_queues_chart")
.selectAll("div")
.data(data)
- .enter().append("div")
+ .enter().append("div");
bars.style("width", function(d) { return scale(d) + "%"; })
bars.text(function(d) { return d; });
@@ -42,8 +42,9 @@
}
function update() {
- var data = [0, 0, 0, 0, 0, 0];
+ var data = [4, 8, 15, 16, 23, 42];
+
/* http://stackoverflow.com/questions/14958825/dynamically-update-chart-data-in-d3 */
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140225/aa3238cd/attachment-0001.html>
More information about the calendarserver-changes
mailing list