Handle empty data aggregation case
@@ -200,6 +200,7 @@ class RunsLinePlotPanel extends React.Component {
/>
</Form.Field>
</Grid.Column>
+ {this.props.data.selectedRuns.length > 1 && (
<Grid.Column width={4} verticalAlign="middle">
<Form.Checkbox
toggle
@@ -213,6 +214,8 @@ class RunsLinePlotPanel extends React.Component {
}
/>
</Grid.Column>
+ )}
+ {this.props.config.aggregate && (
<Grid.Column width={6}>
<Form.Dropdown
disabled={!this.props.config.aggregate}
@@ -231,6 +234,7 @@ class RunsLinePlotPanel extends React.Component {
}
/>
</Grid.Column>
+ )}
</Grid.Row>
</Grid>
</Form>
@@ -283,6 +287,10 @@ class RunsLinePlotPanel extends React.Component {
lines.map((line, j) => line.data.map((point, i) => point.x)),
);
+ if (xVals.length == 0) {
+ return [];
+ }
+
let maxX = arrMax(xVals);
let minX = arrMin(xVals);
@@ -339,6 +347,7 @@ class RunsLinePlotPanel extends React.Component {
if (!data || data.length == 0) {
return [];
}
+
let xAxisKey = this.props.config.xAxis || '_step';
let smoothing =
this.props.config.smoothingWeight &&
