We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a5c910 commit e138fbeCopy full SHA for e138fbe
src/modules/Range.js
@@ -180,7 +180,7 @@ class Range {
180
if (typeof yaxe.max === 'number') {
181
gl.maxYArr[index] = yaxe.max
182
} else if (typeof yaxe.max === 'function') {
183
- gl.maxYArr[index] = yaxe.max(gl.maxY)
+ gl.maxYArr[index] = yaxe.max(gl.maxYArr[index])
184
}
185
186
// gl.maxY is for single y-axis chart, it will be ignored in multi-yaxis
@@ -190,7 +190,7 @@ class Range {
190
if (typeof yaxe.min === 'number') {
191
gl.minYArr[index] = yaxe.min
192
} else if (typeof yaxe.min === 'function') {
193
- gl.minYArr[index] = yaxe.min(gl.minY)
+ gl.minYArr[index] = yaxe.min(gl.minYArr[index])
194
195
// gl.minY is for single y-axis chart, it will be ignored in multi-yaxis
196
gl.minY = gl.minYArr[index]
0 commit comments