Skip to content

Commit b510b35

Browse files
authored
Merge pull request #4290 from VisActor/fix/markline-autoRange
Fix/markline auto range
2 parents 97233b1 + 9ff4a85 commit b510b35

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "fix: fix the issue of markline autoRange\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vchart"
7+
}
8+
],
9+
"packageName": "@visactor/vchart",
10+
"email": "[email protected]"
11+
}

packages/vchart/src/component/marker/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function xyLayout(
187187
data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
188188

189189
const xAxisHelper = (relativeSeries as ICartesianSeries).getXAxisHelper();
190-
const yAxisHelper = (relativeSeries as ICartesianSeries).getXAxisHelper();
190+
const yAxisHelper = (relativeSeries as ICartesianSeries).getYAxisHelper();
191191

192192
const xDomain = xAxisHelper.getScale(0).domain();
193193
const yDomain = yAxisHelper.getScale(0).domain();

0 commit comments

Comments
 (0)