Skip to content

Commit

Permalink
[docs] Fix domainLimit definition (@alexfauquette) (#16271)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Fauquette <[email protected]>
  • Loading branch information
github-actions[bot] and alexfauquette authored Jan 20, 2025
1 parent 4f4dcc1 commit c04a6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/charts/axis/axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ It can take 3 different values:

- `"nice"` Rounds the domain at human friendly values. It's the default behavior.
- `"strict"` Sets the domain to the min/max value to display.
- `([minValue, maxValue]) => [min, max]` Receives the calculated extremums as parameters, and should return the axis domain.
- `(minValue, maxValue) => { min, max }` Receives the calculated extremums as parameters, and should return the axis domain.

The demo below shows different ways to set the y-axis range.
They always display the same data, going from -15 to 92, but with different `domainLimit` settings.
Expand Down

0 comments on commit c04a6d8

Please sign in to comment.