import React from "react"; import ReactDOM from "react-dom/server"; import {VictoryAxis, VictoryChart, VictoryLine, VictoryScatter} from "victory"; import {convertSecondsToFormattedTime} from "../../../../util/date-time"; const LoadChartComponent = ({data, currentTick}) => { const onExport = () => { const newWindow = window.open(""); newWindow.document.write(ReactDOM.renderToString( )); newWindow.document.title = "OpenDC Chart Export"; }; return (
Load over time
); }; const VictoryChartComponent = ({data, currentTick, showCurrentTick}) => ( convertSecondsToFormattedTime(tick)} fixLabelOverlap={true} label="Simulated Time" /> {showCurrentTick ? : undefined } ); const ExportChartComponent = ({onExport}) => ( ); export default LoadChartComponent;