diff --git a/src/components/widget-plot/plot.js b/src/components/widget-plot/plot.js index 702940d..a8e03f2 100644 --- a/src/components/widget-plot/plot.js +++ b/src/components/widget-plot/plot.js @@ -149,7 +149,7 @@ class Plot extends React.Component { // create scale functions for both axes const xScale = scaleTime().domain([Date.now() - this.props.time * 1000, Date.now()]).range([0, this.props.width - leftMargin - this.state.labelMargin - rightMargin]); - const yScale = scaleLinear().domain(yRange).range([this.props.height - bottomMargin, 0]); + const yScale = scaleLinear().domain(yRange).range([this.props.height - bottomMargin, 5]); const xAxis = axisBottom().scale(xScale).ticks(5).tickFormat(date => timeFormat("%M:%S")(date)); const yAxis = axisLeft().scale(yScale).ticks(5); diff --git a/src/styles/widgets.css b/src/styles/widgets.css index e1f16ca..e364a81 100644 --- a/src/styles/widgets.css +++ b/src/styles/widgets.css @@ -155,6 +155,7 @@ div[class*="-widget"] .btn[disabled], .btn.disabled, div[class*="-widget"] input display: flex; flex-direction: column; justify-content: center; + margin-right: 10px; } .plot-table-widget small {