Skip to content

Commit

Permalink
✨ (line) use 'nice' axis ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Jan 8, 2025
1 parent c8cf78e commit 5dc4d1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@ export class LineChart
// TODO: enable nice axis ticks for linear scales
return new AxisConfig(
{
nice: this.manager.yAxisConfig?.scaleType !== ScaleType.log,
// if we only have a single y value (probably 0), we want the
// horizontal axis to be at the bottom of the chart.
// see https://github.com/owid/owid-grapher/pull/975#issuecomment-890798547
Expand Down

0 comments on commit 5dc4d1c

Please sign in to comment.