Skip to content

Commit 4b2ad87

Browse files
automargins on scatter
1 parent 93a7760 commit 4b2ad87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PlotlyRenderers.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ function makeScatterRenderer(PlotlyComponent) {
142142
title: this.props.rows.join('-') + ' vs ' + this.props.cols.join('-'),
143143
hovermode: 'closest',
144144
/* eslint-disable no-magic-numbers */
145-
xaxis: {title: this.props.cols.join('-'), domain: [0.1, 1.0]},
146-
yaxis: {title: this.props.rows.join('-')},
145+
xaxis: {title: this.props.cols.join('-'), automargin: true},
146+
yaxis: {title: this.props.rows.join('-'), automargin: true},
147147
width: window.innerWidth / 1.5,
148148
height: window.innerHeight / 1.4 - 50,
149149
/* eslint-enable no-magic-numbers */

0 commit comments

Comments
 (0)