1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Merge branch '129-plot-labels-on-y-axis-are-cut-of' into 'develop'

Resolve "Plot: Labels on y-Axis are cut of"

Closes #129

See merge request acs/public/villas/VILLASweb!29
This commit is contained in:
Markus Grigull 2018-05-04 13:12:03 +02:00
commit 08ebfa1b9d
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

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