From 5712be734fcc46e22308d2f53a05148c422b8cfb Mon Sep 17 00:00:00 2001 From: Ethan McElroy Date: Fri, 28 Jun 2024 15:55:37 -0400 Subject: [PATCH] fix: Locked Axis resets when manual points chosen (PT-187790534) [#187790534](https://www.pivotaltracker.com/story/show/187790534) --- src/plugins/graph/models/graph-controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/graph/models/graph-controller.ts b/src/plugins/graph/models/graph-controller.ts index 3db7a5d809..9766f9619d 100644 --- a/src/plugins/graph/models/graph-controller.ts +++ b/src/plugins/graph/models/graph-controller.ts @@ -153,7 +153,9 @@ export class GraphController { attrType = dataConfiguration.attributeType(attrRole) ?? 'empty', currAxisModel = graphModel.getAxis(place), currentType = currAxisModel?.type ?? 'empty', - [min, max] = kDefaultNumericAxisBounds; + [min, max] = graphModel.lockAxes && isNumericAxisModel(currAxisModel) + ? [currAxisModel.min, currAxisModel.max] + : kDefaultNumericAxisBounds; switch (attrType) { case 'numeric': { if (!currAxisModel || !isNumericAxisModel(currAxisModel)) {