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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 4 12:58:29 PST 2014


Revision: 12796
          http://trac.calendarserver.org//changeset/12796
Author:   wsanchez at apple.com
Date:     2014-03-04 12:58:29 -0800 (Tue, 04 Mar 2014)
Log Message:
-----------
log scale for x-axis

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

Modified: CalendarServer/trunk/calendarserver/webadmin/work.xhtml
===================================================================
--- CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-03-04 20:35:07 UTC (rev 12795)
+++ CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-03-04 20:58:29 UTC (rev 12796)
@@ -112,8 +112,8 @@
         if (max > maxSeen) { maxSeen = max; }
 
         var xLocation =
-          d3.scale.linear()
-            .domain([0, maxSeen])
+          d3.scale.log()
+            .domain([1, maxSeen])
             .range([xInset, innerWidth])
           ;
 
@@ -127,6 +127,7 @@
           d3.svg.axis()
             .scale(xLocation)
             .orient("bottom")
+            .ticks(20, ",.0f")
           ;
 
         var yAxis =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140304/b7ad9168/attachment.html>


More information about the calendarserver-changes mailing list