[CalendarServer-changes] [12751] CalendarServer/trunk/calendarserver/webadmin/work.xhtml

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 25 14:24:02 PST 2014


Revision: 12751
          http://trac.calendarserver.org//changeset/12751
Author:   wsanchez at apple.com
Date:     2014-02-25 14:24:02 -0800 (Tue, 25 Feb 2014)
Log Message:
-----------
Try to update chart data and wonder why it doesn't.

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/webadmin/work.xhtml

Modified: CalendarServer/trunk/calendarserver/webadmin/work.xhtml
===================================================================
--- CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-02-25 22:11:07 UTC (rev 12750)
+++ CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-02-25 22:24:02 UTC (rev 12751)
@@ -31,11 +31,12 @@
                       .domain([0, 200])
                       .range([0, 98]);
 
-        var bars = d3.select("#work_queues_chart")
-                     .selectAll("div")
-                       .data(data)
-                     .enter().append("div");
+        var chart = d3.select("#work_queues_chart")
+                      .selectAll("div")
+                        .data(data)
 
+        var bars = chart.enter().append("div");
+
         bars.style("width", function(d) { return scale(d) + "%"; })
         bars.text(function(d) { return d; });
 
@@ -45,7 +46,12 @@
 
         var data = [4, 8, 15, 16, 23, 42];
 
+        var chart = d3.select("#work_queues_chart")
+                     .selectAll("div")
+                       .data(data)
+
         /* http://stackoverflow.com/questions/14958825/dynamically-update-chart-data-in-d3 */
+
       }
 
       window.onload = init;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140225/256a42a9/attachment-0001.html>


More information about the calendarserver-changes mailing list