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 d169591 commit 18ff220Copy full SHA for 18ff220
src/coord/cartesian/Grid.ts
@@ -572,7 +572,10 @@ class Grid implements CoordinateSystemMaster {
572
if (includeMarkerInExtent && value != null && typeof value !== 'string' && axisType !== 'category') {
573
const val = axis.scale.parse(value);
574
if (!isNaN(val)) {
575
- axis.scale._innerUnionExtent([val, val]);
+ // Construct the parameter and use unionExtentFromData to avoid using the private method _innerUnionExtent
576
+ axis.scale.unionExtentFromData({
577
+ getApproximateExtent: () => [val, val]
578
+ } as any, 0);
579
}
580
581
0 commit comments