We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6eea0e commit 774c209Copy full SHA for 774c209
src/coord/cartesian/Grid.ts
@@ -568,7 +568,8 @@ class Grid implements CoordinateSystemMaster {
568
axisType: OptionAxisType,
569
): void {
570
const includeMarkerInExtent = axis.model.get('includeMarkerInExtent') ?? false;
571
- if (includeMarkerInExtent && value != null && typeof value !== 'string' && axisType !== 'category') {
+ const isValidNumber = typeof value === 'number' && !isNaN(value);
572
+ if (includeMarkerInExtent && isValidNumber && axisType !== 'category') {
573
const val = axis.scale.parse(value);
574
if (!isNaN(val)) {
575
axis.scale.unionExtentByValue(val);
0 commit comments