Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Sep 6, 2022
1 parent 0b55221 commit e3e3d5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MonoObjOptimPlotter extends React.PureComponent {
data,
} = this.props;

let plot_data = [];
const plot_data = [];
if (data.length === 1) {
for (let i = 0; i < data[0].inputs.x[0].length; i += 1) {
const trace = MonoObjOptimPlotter.makeTrace(data[0].inputs.x.map((z) => z[i]), `x${i + 1}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MultiObjOptimViewer extends React.PureComponent {
} else {
trace.name = `${ylabel} vs ${xlabel}`;
}
if (data.length > 1) {
if (data.length > 1) {
trace.name = `serie#${d + 1} ${trace.name}`;
}
trace.marker = {
Expand Down Expand Up @@ -87,15 +87,15 @@ class MultiObjOptimViewer extends React.PureComponent {
trace2.xaxis = xname;
trace2.yaxis = yname;
trace2.name = `Pareto ${ylabel} vs ${xlabel}`;
if (data.length > 1) {
trace2.name = `serie#${d + 1} ${trace2.name}`
if (data.length > 1) {
trace2.name = `serie#${d + 1} ${trace2.name}`;
}
trace2.marker = {
color: COLORMAP[d],
symbol: SYMBOLS[1],
};
plot_data.push(trace2);
}
}
}
}
}
Expand Down

0 comments on commit e3e3d5b

Please sign in to comment.