diff --git a/common/changes/@visactor/vchart/fix-markline-autoRange_2025-11-06-08-18.json b/common/changes/@visactor/vchart/fix-markline-autoRange_2025-11-06-08-18.json new file mode 100644 index 0000000000..4254c447f6 --- /dev/null +++ b/common/changes/@visactor/vchart/fix-markline-autoRange_2025-11-06-08-18.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix the issue of markline autoRange\n\n", + "type": "none", + "packageName": "@visactor/vchart" + } + ], + "packageName": "@visactor/vchart", + "email": "lixuef1313@163.com" +} \ No newline at end of file diff --git a/packages/vchart/src/component/marker/utils.ts b/packages/vchart/src/component/marker/utils.ts index c687fa208a..f2a69bd90b 100644 --- a/packages/vchart/src/component/marker/utils.ts +++ b/packages/vchart/src/component/marker/utils.ts @@ -187,7 +187,7 @@ export function xyLayout( data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData; const xAxisHelper = (relativeSeries as ICartesianSeries).getXAxisHelper(); - const yAxisHelper = (relativeSeries as ICartesianSeries).getXAxisHelper(); + const yAxisHelper = (relativeSeries as ICartesianSeries).getYAxisHelper(); const xDomain = xAxisHelper.getScale(0).domain(); const yDomain = yAxisHelper.getScale(0).domain();