Skip to content

Commit

Permalink
fix log scale breaking box plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Jan 3, 2025
1 parent 6828ab0 commit 5663cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/components/plots/BoxScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export default class BoxScatterPlot<
}}
orientation="bottom"
offsetY={50}
domain={this.props.horizontal && this.plotDomain.x}
crossAxis={false}
label={this.props.axisLabelX}
tickValues={
Expand Down Expand Up @@ -632,6 +633,7 @@ export default class BoxScatterPlot<
<VictoryAxis
orientation="left"
offsetX={50}
domain={!this.props.horizontal && this.plotDomain.y}
crossAxis={false}
label={this.yAxisLabel}
dependentAxis={true}
Expand Down Expand Up @@ -809,7 +811,6 @@ export default class BoxScatterPlot<
height={this.chartHeight}
standalone={false}
domainPadding={this.chartDomainPadding}
domain={this.plotDomain}
singleQuadrantDomainPadding={{
[this.dataAxis]: !!this.props
.startDataAxisAtZero,
Expand Down

0 comments on commit 5663cc7

Please sign in to comment.