Files
vscode-debug-visualizer/visualization/src/visualizers/plotly/PlotlyViewer.tsx
2020-03-20 19:09:13 +01:00

20 lines
361 B
TypeScript

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 }}
/>
);
}
}