This commit is contained in:
Harman Waseer
2021-02-16 21:35:21 +05:30
parent ad7fb4d1b0
commit 9c148bab3b
2 changed files with 4 additions and 4 deletions
@@ -75,6 +75,7 @@ export const GraphSlice: FC<{
// xpad: 40
},
]
console.log(dimensions)
return plotly.react(plotDomId, plotData, layout)
}
else{
@@ -87,7 +88,7 @@ export const GraphSlice: FC<{
xaxis : "x"
}
// let traces :{type: string, dimensions: { label: string; values: number[]; range: number[]; }[], mode: string, xaxis: string} [] = []
let traces: Partial<plotly.PlotData>[]= []
paramNames.forEach((paramName) => {
@@ -115,7 +116,7 @@ export const GraphSlice: FC<{
}
traces.push(trace)
i++
i++
})
const plotData: Partial<plotly.PlotData>[] = traces
@@ -21,7 +21,7 @@ import { Home, Cached } from "@material-ui/icons"
import { DataGridColumn, DataGrid } from "./DataGrid"
import { GraphParallelCoordinate } from "./GraphParallelCoordinate"
import { GraphIntermediateValues } from "./GraphIntermediateValues"
import {GraphSlice} from "./GraphSlice"
import { GraphSlice } from "./GraphSlice"
import { GraphHistory } from "./GraphHistory"
import { actionCreator } from "../action"
import { studyDetailsState } from "../state"
@@ -198,7 +198,6 @@ export const StudyDetail: FC<{}> = () => {
<Card className={classes.card}>
<CardContent>
<GraphSlice trials={trials} />
{/* <p>Hi</p> */}
</CardContent>
</Card>
</Grid>