Skip to content

Commit

Permalink
add => { return as bad text and fix usages, phetsims/chipper#790
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 17f466d commit 870367e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

class AxisLabel extends scenery.Text {
constructor( labelString, rotation ) {
super( labelString, {
super( labelString, {
fontSize: 15,
rotation: rotation
} );
Expand Down Expand Up @@ -106,7 +106,7 @@
} );

// layout variables
const maxDisplayedHits = _.maxBy( data, ( entry ) => { return entry.numHits; } ).numHits * 1.3;
const maxDisplayedHits = _.maxBy( data, entry => entry.numHits ).numHits * 1.3;
const widthPerBar = chartWidth / data.length;
const barSpacing = widthPerBar * 0.25;

Expand Down Expand Up @@ -138,7 +138,7 @@

const barHeight = ( entry.numHits / maxDisplayedHits ) * chartHeight;
const bar = new Bar( entry, barSpacing + ( i * widthPerBar ), chartHeight - barHeight, widthPerBar - barSpacing, barHeight );
bar.opacity = Math.min( 0.4 + entry.numHits / maxDisplayedHits, 1 );
bar.opacity = Math.min( 0.4 + entry.numHits / maxDisplayedHits, 1 );
barsNode.addChild( bar );

label.centerTop = bar.centerBottom;
Expand Down

0 comments on commit 870367e

Please sign in to comment.