Skip to content

Commit fb00393

Browse files
committed
Update main.js
1 parent 76bd1cf commit fb00393

File tree

1 file changed

+1
-1
lines changed
  • miniChalenge2_2020_ViolinMatrix/src/js

1 file changed

+1
-1
lines changed

miniChalenge2_2020_ViolinMatrix/src/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ function update({nestData,nestByLabel,nestByPerson,personList,labelList,dataCorr
301301
function triggerImages(istrigger,label){
302302
d3.select('#close').classed('hide',!istrigger);
303303
if (istrigger){
304+
svg.call(graphicopt.zoom.transform, d3.zoomIdentity);
304305
svg.selectAll('g.violin').style('display','none');
305306
svg.selectAll('g.corrected').style('display','none');
306307
let stackUser ={};
@@ -326,7 +327,6 @@ function update({nestData,nestByLabel,nestByPerson,personList,labelList,dataCorr
326327
.append('image')
327328
.attr('width',x.bandwidth())
328329
.attr('href',d=>`../miniChalenge2_2020_TimeArc/src/data/MC2-Image-Data/Person${d.value[0].Person}/${d.key}.jpg`);
329-
svg.call(graphicopt.zoom.transform, d3.zoomIdentity);
330330
}
331331
else{
332332
x.domain(xList);

0 commit comments

Comments
 (0)