diff --git a/web/frontend/src/Analysis.root.svelte b/web/frontend/src/Analysis.root.svelte index ee74bb8..d287cf3 100644 --- a/web/frontend/src/Analysis.root.svelte +++ b/web/frontend/src/Analysis.root.svelte @@ -55,7 +55,7 @@ let filterComponent; // see why here: https://stackoverflow.com/questions/58287729/how-can-i-export-a-function-from-a-svelte-component-that-changes-a-value-in-the let jobFilters = []; let rooflineMaxY; - let colWidth1, colWidth2, colWidth3, colWidth4; + let colWidth1, colWidth2; let numBins = 50; let maxY = -1; @@ -465,36 +465,30 @@ {/if} -
- {#key $statsQuery.data.stats[0].histDuration} - - {/key} -
+ {#key $statsQuery.data.stats[0].histDuration} + + {/key} -
- {#key $statsQuery.data.stats[0].histNumCores} - - {/key} -
+ {#key $statsQuery.data.stats[0].histNumCores} + + {/key} {/if} @@ -525,7 +519,6 @@ ({ metric, @@ -542,8 +535,6 @@ > -
+

Top Users on {cluster.charAt(0).toUpperCase() + cluster.slice(1)}

@@ -479,7 +478,7 @@ {$topUserQuery.error.message} {:else} tu[topUserSelection.key], @@ -539,7 +538,7 @@ {$topProjectQuery.error.message} {:else} tp[topProjectSelection.key], @@ -591,25 +590,21 @@
-
- {#key $mainQuery.data.stats} - - {/key} -
+ {#key $mainQuery.data.stats} + + {/key} {#key $mainQuery.data.stats} -
- {#key $mainQuery.data.stats} - - {/key} -
+ {#key $mainQuery.data.stats} + + {/key} {#key $mainQuery.data.stats} -
- {#key $stats.data.jobsStatistics[0].histDuration} - - {/key} -
+ {#key $stats.data.jobsStatistics[0].histDuration} + + {/key} -
- {#key $stats.data.jobsStatistics[0].histNumNodes} - - {/key} -
+ {#key $stats.data.jobsStatistics[0].histNumNodes} + + {/key} {/if}
@@ -278,7 +267,6 @@ {#key $stats.data.jobsStatistics[0].histMetrics} x._is_placeholder === true + let rows = []; + const isPlaceholder = x => x._is_placeholder === true; function tile(items, itemsPerRow) { const rows = [] diff --git a/web/frontend/src/generic/plots/Histogram.svelte b/web/frontend/src/generic/plots/Histogram.svelte index a1bb79b..6c8939a 100644 --- a/web/frontend/src/generic/plots/Histogram.svelte +++ b/web/frontend/src/generic/plots/Histogram.svelte @@ -21,8 +21,8 @@ export let data; export let usesBins = false; - export let width = 500; - export let height = 300; + export let width = null; + export let height = 250; export let title = ""; export let xlabel = ""; export let xunit = ""; @@ -226,10 +226,13 @@ $: sizeChanged(width, height); -{#if data.length > 0} -
-{:else} - Cannot render histogram: No data! -{/if} + +
+ {#if data.length > 0} +
+ {:else} + Cannot render histogram: No data! + {/if} +
diff --git a/web/frontend/src/generic/plots/MetricPlot.svelte b/web/frontend/src/generic/plots/MetricPlot.svelte index ba7533f..09f313c 100644 --- a/web/frontend/src/generic/plots/MetricPlot.svelte +++ b/web/frontend/src/generic/plots/MetricPlot.svelte @@ -117,6 +117,7 @@ export let metric; export let scope = "node"; + export let width = null; export let height = 300; export let timestep; export let series; @@ -130,8 +131,6 @@ export let numaccs = 0; export let zoomState = null; - let width; - if (useStatsSeries == null) useStatsSeries = statisticsSeries != null; if (useStatsSeries == false && series == null) useStatsSeries = true; diff --git a/web/frontend/src/generic/plots/Scatter.svelte b/web/frontend/src/generic/plots/Scatter.svelte index 08fa7bd..514223b 100644 --- a/web/frontend/src/generic/plots/Scatter.svelte +++ b/web/frontend/src/generic/plots/Scatter.svelte @@ -146,8 +146,8 @@ export let Y; export let S = null; export let color = '#0066cc'; - export let width; - export let height; + export let width = 250; + export let height = 300; export let xLabel; export let yLabel;