<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,6 +15,7 @@ info:
 	@echo &quot;data      - runs the 'collect.py' script to process the data&quot;
 	@echo &quot;vizdata   - copies the processed data to the viz directory&quot;
 	@echo
+	@echo &quot;To run the visualization, 'cd viz ; pamela-web' (you need Pamela)&quot;
 
 createdb:
 	echo &quot;create database $(MYSQL_DB) ; grant all privileges on $(MYSQL_DB).* to '$(MYSQL_USER)'@'$(HOSTNAME)';&quot; | mysql -uroot -p ; true</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -253,8 +253,6 @@
 				&lt;div.footer
 					&lt;div.origin
 						&lt;div.out:[DEPARTMENT]
-					&lt;div.more
-						&lt;input.do-showMore(type=button,value=Show more...)
 			&lt;div.ExpenseTagDetails.details
 				&lt;div.body
 					&lt;div.departmentInfo</diff>
      <filename>viz/expenses.paml</filename>
    </modified>
    <modified>
      <diff>@@ -403,24 +403,6 @@ a:hover {
 	vertical-align: middle;
 }
 
-.ExpenseTag .footer .more {
-	display: none;
-	position: absolute;
-	left: -1px;
-	right: -1px;
-	bottom: -1px;
-	padding-top: 9px;
-	padding-bottom: 9px;
-	background: #E0E0E0;
-	font-weight: normal;
-	text-align: center;
-	z-index: 200;
-}
-
-*:hover.ExpenseTag .footer .more {
-	display: block;
-}
-
 .ExpenseTagTooltip {
 	min-width: 200px;
 	background: #FFFFA0;</diff>
      <filename>viz/lib/css/visiblegovernment.css</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 # License   : BSD License
 # -----------------------------------------------------------------------------
 # Creation  : 07-Dec-2008
-# Last mod  : 14-Jun-2009
+# Last mod  : 29-Oct-2009
 # -----------------------------------------------------------------------------
 
 @module expensetag
@@ -83,83 +83,9 @@
 		super bindUI ()
 		uis cursor  = $ (&quot;.cursor&quot;, ui)
 		uis canvas  = $ (&quot;canvas&quot;, ui) [0]
-		uis qtip    = $ (uis canvas) qtip {
-			content: 'This is an active list element'
-			position: {
-				target:&quot;mouse&quot;
-				corner:{tooltip:&quot;bottomMiddle&quot;}
-			}
-			show: 'mouseover'
-			hide: 'mouseout'
-			content : {text:($ &quot;#Templates .ExpenseTagTooltip&quot; clone ())}
-		} qtip &quot;api&quot;
-		uis qtip onPositionUpdate = {e|updateToolTip (target, arguments)}
-		uis qtip onHide           = {uis cursor addClass &quot;hidden&quot;}
 		ctx = uis canvas getContext &quot;2d&quot;
 	@end
 
-	@method updateToolTip
-		var pos = uis qtip getPos ()
-		var w   = parseInt ($ (uis qtip elements tooltip) css &quot;width&quot;)
-		var ref = $ (uis canvas) offset ()
-		pos left = pos left - ref left + w /2
-		pos top  = ref top
-		if pos left &gt;= 0
-			var width        = parseInt ($(uis canvas) attr &quot;width&quot;)
-			var height       = parseInt ($(uis canvas) attr &quot;height&quot;)
-			var start_mon    = (parameters start year - 2003) * 12 + parameters start month
-			var end_mon      = (parameters end year   - 2003) * 12 + parameters end month
-			var range_mon    = (start_mon)..(end_mon)
-			var x            = 0
-			var x_step       = width / range_mon length
-			var month_offset = parseInt (pos left / x_step)
-			var m            = start_mon + month_offset
-			var year         = parameters start year + m / 12
-			var month        = m % 12 + 1
-			if False
-				uis cursor css {
-					left: (m*x_step)
-					top:   0
-					width: x_step
-					height:height
-				}
-				uis cursor removeClass &quot;hidden&quot;
-			end
-			if uis qtip lastMonth != m
-				var d            = data mon [m]
-				var c            = uis qtip elements content
-				$ ( &quot;.month .out&quot;, c ) html (sprintf(&quot;%02d/%04d&quot;, month, year))
-				if d is Undefined
-					$ (&quot;.when-data&quot;,    c)  addClass &quot;hidden&quot;
-					$ (&quot;.when-no_data&quot;, c)  removeClass &quot;hidden&quot;
-					c addClass &quot;nodata&quot;
-				else
-					$ (&quot;.when-data&quot;, c)    removeClass &quot;hidden&quot;
-					$ (&quot;.when-no_data&quot;, c) addClass    &quot;hidden&quot;
-					c removeClass &quot;nodata&quot;
-					var expenses  = retrieveExpenses (d)
-					var guidelines = retrieveGuidelines (d)
-					var delta      = expenses / guidelines
-					if delta &gt; 1.0
-						delta = sprintf (&quot;+%d%%&quot;, (delta * 100) - 100 )
-						$ ( &quot;.delta .out&quot;, c ) removeClass &quot;negative&quot;
-						$ ( &quot;.delta .out&quot;, c ) addClass    &quot;positive&quot;
-					else
-						delta = sprintf (&quot;%d%%&quot;, (delta * 100) - 100 )
-						$ ( &quot;.delta .out&quot;, c ) addClass    &quot;negative&quot;
-						$ ( &quot;.delta .out&quot;, c ) removeClass &quot;positive&quot;
-					end
-					$ ( &quot;.hospitality  .out&quot;, c ) html ( sprintf (&quot;%0.2f $&quot;, d hos) )
-					$ ( &quot;.travel  .out&quot;, c ) html ( sprintf (&quot;%0.2f $&quot;, d tra) )
-					$ ( &quot;.expenses  .out&quot;, c ) html ( sprintf (&quot;%0.2f $&quot;, expenses) )
-					$ ( &quot;.guidelines .out&quot;, c ) html ( sprintf (&quot;%0.2f $&quot;, guidelines) )
-					$ ( &quot;.delta .out&quot;, c )      html ( delta )
-				end
-				uis qtip lastMonth = m
-			end
-		end
-	@end
-
 	@method getMetrics data
 	| Returns an object with various metrics on the data displayed by this visualization.
 		var start_mon    = (parameters start year - 2003) * 12 + parameters start month
@@ -985,7 +911,7 @@ $(document) ready {
 	var last_department = 0
 	# STEP 2 - We create widgets for each department in the EXPENSES dataset
 	for department, i in EXPENSES
-		if i &lt;= 2
+		if i &gt;= 0
 			# We build indicators
 			#console log (department name)
 			var name             = department name
@@ -1025,6 +951,7 @@ $(document) ready {
 			# We create the visualization, and attach it to the view
 			var viz                        = new ExpenseTag (new_view)
 			viz parameters maxMonth        = department max_month
+			# FIXME: Don't know if the total is OK
 			viz parameters total           = department total
 			viz parameters globalMaxTotal  = maxima_total
 			viz parameters globalMaxMonth  = maxima_month</diff>
      <filename>viz/lib/sjs/expensetag.sjs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0f97b673f7fe9694ff6245faf0048bf99336d93f</id>
    </parent>
  </parents>
  <author>
    <name>Sebastien Pierre</name>
    <email>sebastien@type-z.org</email>
  </author>
  <url>http://github.com/visiblegovernment/Expense-Visualizer/commit/5be64b8f73ba2e10c5c3c9b0d688f0bd9a73ba26</url>
  <id>5be64b8f73ba2e10c5c3c9b0d688f0bd9a73ba26</id>
  <committed-date>2009-10-29T14:21:08-07:00</committed-date>
  <authored-date>2009-10-29T14:21:08-07:00</authored-date>
  <message>Removed annoying, useless tooltip</message>
  <tree>09b51382f937bea80c9cf9fa67235d3d2354972f</tree>
  <committer>
    <name>Sebastien Pierre</name>
    <email>sebastien@type-z.org</email>
  </committer>
</commit>
