Skip to content

Commit c1d2330

Browse files
committed
Exemple comments
1 parent af85567 commit c1d2330

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

examples/simple/flocculate_token.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ <h1>Flocullate token selection</h1>
115115
console.log("select all tokens : ",selectAllTokens)
116116

117117

118-
function testSelect(key,value){
119-
// select it
118+
function focculateSelect(key,value){
119+
120+
// select the tokens you want to flocculate
120121
var selectMyClassTokens = barChart.selectAll(key,value);
121122
console.log("selectMyClassTokens",selectMyClassTokens)
122123

123-
// and make it bigger
124+
// flocculate the token
124125
selectMyClassTokens.flocculate()
126+
// update the stratas
125127
barChart.strata.update(barChart);
126128
}
127129

@@ -134,15 +136,15 @@ <h1>Flocullate token selection</h1>
134136
<button type="button" onclick="barChart.addToken({size:10,category:2,name:'Obama'})" accesskey="m"> ↓ no name</button>
135137
</div>
136138
<div>
137-
<button type="button" onclick="testSelect('id','myId')" accesskey="b">
139+
<button type="button" onclick="focculateSelect('id','myId')" accesskey="b">
138140
flocculate id="myId"
139141
</button>
140142

141-
<button type="button" onclick="testSelect('class','myClass')" accesskey="n">
143+
<button type="button" onclick="focculateSelect('class','myClass')" accesskey="n">
142144
flocculate class="myClass"
143145
</button>
144146

145-
<button type="button" onclick="testSelect()" accesskey="m">
147+
<button type="button" onclick="focculateSelect()" accesskey="m">
146148
flocculate all
147149
</button>
148150
</div>

0 commit comments

Comments
 (0)