Navigation Menu

Skip to content

Commit

Permalink
group title and value under common ancestor
Browse files Browse the repository at this point in the history
* 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
caged committed Jun 20, 2012
1 parent 9ff1a4e commit 3d782e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions cubism.v1.js
Expand Up @@ -477,11 +477,14 @@ cubism_contextPrototype.horizon = function() {
.attr("width", width) .attr("width", width)
.attr("height", height); .attr("height", height);


selection.append("span") label = selection.append("p")
.attr("class", "label")

label.append("span")
.attr("class", "title") .attr("class", "title")
.text(title); .text(title);


selection.append("span") label.append("span")
.attr("class", "value"); .attr("class", "value");


selection.each(function(d, i) { selection.each(function(d, i) {
Expand Down

0 comments on commit 3d782e9

Please sign in to comment.