Skip to content

Commit

Permalink
automargins on scatter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Nov 4, 2018
1 parent 93a7760 commit 4b2ad87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PlotlyRenderers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ function makeScatterRenderer(PlotlyComponent) {
title: this.props.rows.join('-') + ' vs ' + this.props.cols.join('-'),
hovermode: 'closest',
/* eslint-disable no-magic-numbers */
xaxis: {title: this.props.cols.join('-'), domain: [0.1, 1.0]},
yaxis: {title: this.props.rows.join('-')},
xaxis: {title: this.props.cols.join('-'), automargin: true},
yaxis: {title: this.props.rows.join('-'), automargin: true},
width: window.innerWidth / 1.5,
height: window.innerHeight / 1.4 - 50,
/* eslint-enable no-magic-numbers */
Expand Down

0 comments on commit 4b2ad87

Please sign in to comment.