Moves visualizers into their own package.

This commit is contained in:
Henning Dieterichs
2020-03-20 19:09:13 +01:00
parent 6c30519b93
commit 6b210fdbb9
38 changed files with 299 additions and 192 deletions

View File

@@ -0,0 +1,19 @@
import { observer } from "mobx-react";
import * as React from "react";
import Plot from "react-plotly.js";
@observer
export class PlotlyViewer extends React.Component<{
data: Partial<Plotly.Data>[];
}> {
render() {
return (
<Plot
style={{ width: "100%" }}
data={this.props.data}
layout={{}}
config={{ responsive: true }}
/>
);
}
}