Permalink
Browse files

Adding "strength" into competencies list.

  • Loading branch information...
iros committed Oct 5, 2012
1 parent 441f38b commit 05761f0b288f8ec1affba92cf8440460c9ab58c4
Showing with 5 additions and 2 deletions.
  1. +1 −1 code/crossfilter/visual.js
  2. +2 −0 code/taffy-db/competencies.html
  3. +2 −1 code/taffy-db/competencies.js
@@ -4,7 +4,7 @@ d3.json("../../data/all.json", function(heroes) {
// before we pass heroes out to crossfilter, remove those that don't
// have all competency properties because otherwise we will run into lots of zeroes
// that weren't meant to be there..
- var competencies = ["intelligence", "combat", "power", "durability", "speed"],
+ var competencies = ["intelligence", "combat", "power", "durability", "speed", "strength"],
competent_heroes = _.filter(heroes, function(hero) {
// get an array of booleans as to whether the particular
@@ -45,6 +45,7 @@ <h3>What's the relationship between abilities?</h3>
<option value="intelligence">intelligence</option>
<option value="durability">durability</option>
<option value="speed">speed</option>
+ <option value="strength">strength</option>
</select>
<b>Y Axis:</b>
@@ -54,6 +55,7 @@ <h3>What's the relationship between abilities?</h3>
<option value="intelligence">intelligence</option>
<option value="durability">durability</option>
<option value="speed">speed</option>
+ <option value="strength">strength</option>
</select>
<br />
@@ -10,7 +10,8 @@ $.get('../../data/all.json', function(heroes) {
power : { isUndefined : false },
durability : { isUndefined : false },
intelligence : { isUndefined : false },
- speed : { isUndefined : false }
+ speed : { isUndefined : false },
+ strength : { isUndefined : false }
});
// build scatterplot!

0 comments on commit 05761f0

Please sign in to comment.