Skip to content

Commit

Permalink
vertically center y-axis label, #279
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 1, 2024
1 parent 794053d commit 96e249e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/energy/view/HistogramNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class HistogramNode extends Node {
} );
yAxisLabelText.boundsProperty.link( () => {
yAxisLabelText.right = chartRectangle.left - 8;
yAxisLabelText.bottom = chartRectangle.bottom - 10;
yAxisLabelText.centerY = chartRectangle.centerY;
} );

// Grid lines for the y-axis.
Expand Down

0 comments on commit 96e249e

Please sign in to comment.