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)) {