Permalink
Browse files

group title and value under common ancestor

* Makes it easier to position the title and value relative to each
other and provides an additional style hook.
* Includes updated compiled and minified versions
  • Loading branch information...
1 parent 9ff1a4e commit 3d782e909077434025d705ee91c9b07b19921777 @Caged committed Jun 20, 2012
Showing with 11 additions and 5 deletions.
  1. +5 −2 cubism.v1.js
  2. +1 −1 cubism.v1.min.js
  3. +5 −2 src/horizon.js
View
@@ -477,11 +477,14 @@ cubism_contextPrototype.horizon = function() {
.attr("width", width)
.attr("height", height);
- selection.append("span")
+ label = selection.append("p")
+ .attr("class", "label")
+
+ label.append("span")
.attr("class", "title")
.text(title);
- selection.append("span")
+ label.append("span")
.attr("class", "value");
selection.each(function(d, i) {
Oops, something went wrong.

0 comments on commit 3d782e9

Please sign in to comment.