Support full width and height plots
When plotting single plots, we want to see all the data! Use a value of
0 to signal that we want 100%. Do this with CSS to keep things
simplest.
Change-Id: I59e5fa22e0fbe28e9616cf12e2afa2385ebde612
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/frc971/analysis/plot_index.ts b/frc971/analysis/plot_index.ts
index 150407e..26acd46 100644
--- a/frc971/analysis/plot_index.ts
+++ b/frc971/analysis/plot_index.ts
@@ -58,6 +58,7 @@
import {plotData} from 'org_frc971/frc971/analysis/plot_data_utils';
const rootDiv = document.createElement('div');
+rootDiv.style.width = '100%';
document.body.appendChild(rootDiv);
const helpDiv = document.createElement('div');
@@ -99,6 +100,7 @@
plotDiv.style.top = (plotSelect.getBoundingClientRect().bottom + 10).toString();
plotDiv.style.left = '0';
plotDiv.style.position = 'absolute';
+plotDiv.style.width = '100%';
rootDiv.appendChild(plotDiv);
// The master list of all the plots that we provide. For a given config, it