Skip to content

Commit 49f7fb0

Browse files
committed
Enhance documentation of autorange.js expand function
1 parent dc2f3ba commit 49f7fb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/cartesian/autorange.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ function needsAutorange(ax) {
219219
* Note that `expand` is called during `calc`, when we don't yet know the axis
220220
* length; all the inputs should be based solely on the trace data, nothing
221221
* about the axis layout.
222+
* Note that `ppad` and `vpad` as well as their asymmetric variants refer to
223+
* the before and after padding of the passed `data` array, not to the whole axis.
222224
*
223225
* @param {object} ax: the axis being expanded. The result will be more entries
224226
* in ax._min and ax._max if necessary to include the new data

0 commit comments

Comments
 (0)