@@ -115,13 +115,15 @@ <h1>Flocullate token selection</h1>
115
115
console . log ( "select all tokens : " , selectAllTokens )
116
116
117
117
118
- function testSelect ( key , value ) {
119
- // select it
118
+ function focculateSelect ( key , value ) {
119
+
120
+ // select the tokens you want to flocculate
120
121
var selectMyClassTokens = barChart . selectAll ( key , value ) ;
121
122
console . log ( "selectMyClassTokens" , selectMyClassTokens )
122
123
123
- // and make it bigger
124
+ // flocculate the token
124
125
selectMyClassTokens . flocculate ( )
126
+ // update the stratas
125
127
barChart . strata . update ( barChart ) ;
126
128
}
127
129
@@ -134,15 +136,15 @@ <h1>Flocullate token selection</h1>
134
136
< button type ="button " onclick ="barChart.addToken({size:10,category:2,name:'Obama'}) " accesskey ="m "> ↓ no name</ button >
135
137
</ div >
136
138
< div >
137
- < button type ="button " onclick ="testSelect ('id','myId') " accesskey ="b ">
139
+ < button type ="button " onclick ="focculateSelect ('id','myId') " accesskey ="b ">
138
140
flocculate id="myId"
139
141
</ button >
140
142
141
- < button type ="button " onclick ="testSelect ('class','myClass') " accesskey ="n ">
143
+ < button type ="button " onclick ="focculateSelect ('class','myClass') " accesskey ="n ">
142
144
flocculate class="myClass"
143
145
</ button >
144
146
145
- < button type ="button " onclick ="testSelect () " accesskey ="m ">
147
+ < button type ="button " onclick ="focculateSelect () " accesskey ="m ">
146
148
flocculate all
147
149
</ button >
148
150
</ div >
0 commit comments