diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 79542bde44051d..4402b1f1f05efe 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1117,7 +1117,7 @@ export type AxisName = XAxisName | YAxisName; export interface LayoutAxis extends Axis { fixedrange: boolean; - scaleanchor: AxisName; + scaleanchor: AxisName | false; scaleratio: number; constrain: "range" | "domain"; constraintoward: "left" | "center" | "right" | "top" | "middle" | "bottom"; diff --git a/types/plotly.js/test/core-tests.ts b/types/plotly.js/test/core-tests.ts index 284cb995c683a1..42bda171f48872 100644 --- a/types/plotly.js/test/core-tests.ts +++ b/types/plotly.js/test/core-tests.ts @@ -42,6 +42,7 @@ const layout = { showgrid: false, zeroline: false, tickangle, + scaleanchor: false, }, yaxis: { title: { diff --git a/types/plotly.js/v2/index.d.ts b/types/plotly.js/v2/index.d.ts index 95e77f6fef3a48..ce880957bb5dd5 100644 --- a/types/plotly.js/v2/index.d.ts +++ b/types/plotly.js/v2/index.d.ts @@ -1119,7 +1119,7 @@ export type AxisName = XAxisName | YAxisName; export interface LayoutAxis extends Axis { fixedrange: boolean; - scaleanchor: AxisName; + scaleanchor: AxisName | false; scaleratio: number; constrain: "range" | "domain"; constraintoward: "left" | "center" | "right" | "top" | "middle" | "bottom"; diff --git a/types/plotly.js/v2/test/core-tests.ts b/types/plotly.js/v2/test/core-tests.ts index 8a0437f27f056e..3c72675686f4a8 100644 --- a/types/plotly.js/v2/test/core-tests.ts +++ b/types/plotly.js/v2/test/core-tests.ts @@ -40,6 +40,7 @@ const layout = { showgrid: false, zeroline: false, tickangle, + scaleanchor: false, }, yaxis: { title: "Percent",