replace plotTable with new bootstrap plotGrid component

- helps with narrow window sizes
- plotTable kept for now
This commit is contained in:
Christoph Kluge
2024-10-02 17:48:46 +02:00
parent 0ff5c4bedd
commit 7243dbe763
12 changed files with 305 additions and 224 deletions

View File

@@ -28,7 +28,7 @@
} from "./generic/utils.js";
import PlotSelection from "./analysis/PlotSelection.svelte";
import Filters from "./generic/Filters.svelte";
import PlotTable from "./generic/PlotTable.svelte";
import PlotGrid from "./generic/PlotGrid.svelte";
import Histogram from "./generic/plots/Histogram.svelte";
import Pie, { colors } from "./generic/plots/Pie.svelte";
import ScatterPlot from "./generic/plots/Scatter.svelte";
@@ -70,6 +70,8 @@
...new Set([...metricsInHistograms, ...metricsInScatterplots.flat()]),
];
$: console.log(">>> CLUSTER", cluster)
const sortOptions = [
{ key: "totalWalltime", label: "Walltime" },
{ key: "totalNodeHours", label: "Node Hours" },
@@ -523,7 +525,7 @@
</Row>
<Row>
<Col>
<PlotTable
<PlotGrid
let:item
let:width
renderFor="analysis"
@@ -551,7 +553,7 @@
ylabel="Normalized Hours"
yunit="Hours"
/>
</PlotTable>
</PlotGrid>
</Col>
</Row>
<br />
@@ -569,7 +571,7 @@
</Row>
<Row>
<Col>
<PlotTable
<PlotGrid
let:item
let:width
renderFor="analysis"
@@ -595,7 +597,7 @@
Y={item.f2}
S={$footprintsQuery.data.footprints.timeWeights.nodeHours}
/>
</PlotTable>
</PlotGrid>
</Col>
</Row>
{/if}