Skip to content

Commit 07f09d3

Browse files
Add plot/table view toggles with sortable columns for all sections (#50)
* Initial plan * Add plot/table view toggles for per-day and per-dandiset/asset histogram views Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com> Agent-Logs-Url: https://github.com/dandi/access-page/sessions/5fcf916a-fe89-4828-bde5-9ed5c34aa92a * Add sortable column headers to all plot-paired tables Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com> Agent-Logs-Url: https://github.com/dandi/access-page/sessions/229600a1-c1a3-4a3a-9189-cdc7644aad21 * Add geo section Plot/Table toggle and sortable geographic tables Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com> Agent-Logs-Url: https://github.com/dandi/access-page/sessions/f8f02c14-1422-4f0f-bf96-20ab69487993 * Consolidate geo section toggles into single View: Regions/Dots/Table/AWS control Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com> Agent-Logs-Url: https://github.com/dandi/access-page/sessions/070cef73-ad6b-4c70-bea3-a13c21f63b94 * Narrow table columns by using width:auto instead of 100% Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com> Agent-Logs-Url: https://github.com/dandi/access-page/sessions/cfc6702f-783c-4d94-a420-163fe0f2287c --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>
1 parent f56c361 commit 07f09d3

3 files changed

Lines changed: 314 additions & 50 deletions

File tree

index.html

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,38 @@
6363
</div>
6464
</div>
6565
<div id="totals"></div>
66+
<div class="ControllerContainer PlotViewControls" id="over_time_view_controls">
67+
<div class="SubControllerContainer">
68+
<span class="radio-label">View:</span>
69+
<label class="radio-option"><input type="radio" name="over_time_view" value="plot" checked /> Plot</label>
70+
<label class="radio-option"><input type="radio" name="over_time_view" value="table" /> Table</label>
71+
</div>
72+
</div>
6673
<div id="over_time_plot"></div>
74+
<div id="over_time_table" class="plot-table" style="display:none;"></div>
75+
<div class="ControllerContainer PlotViewControls" id="histogram_view_controls">
76+
<div class="SubControllerContainer">
77+
<span class="radio-label">View:</span>
78+
<label class="radio-option"><input type="radio" name="histogram_view" value="plot" checked /> Plot</label>
79+
<label class="radio-option"><input type="radio" name="histogram_view" value="table" /> Table</label>
80+
</div>
81+
</div>
6782
<div id="histogram"></div>
68-
<div class="ControllerContainer MapControls">
83+
<div id="histogram_table" class="plot-table" style="display:none;"></div>
84+
<div class="ControllerContainer PlotViewControls" id="geo_view_controls">
6985
<div class="SubControllerContainer">
70-
<span class="radio-label">Map Style:</span>
71-
<label class="radio-option"><input type="radio" name="map_style" value="region" checked /> Regions</label>
72-
<label class="radio-option"><input type="radio" name="map_style" value="dots" /> Dots</label>
86+
<span class="radio-label">View:</span>
87+
<label class="radio-option"><input type="radio" name="geo_view" value="regions" checked /> Regions</label>
88+
<label class="radio-option"><input type="radio" name="geo_view" value="dots" /> Dots</label>
89+
<label class="radio-option"><input type="radio" name="geo_view" value="table" /> Table</label>
90+
<label class="radio-option"><input type="radio" name="geo_view" value="aws" /> AWS</label>
7391
</div>
7492
</div>
7593
<div id="geography_heatmap"></div>
7694
<div id="map_attribution" class="attribution">
7795
Boundaries: <a href="https://gadm.org/" target="_blank" rel="noopener">GADM v4.1</a>
7896
</div>
79-
<div class="tables-row">
97+
<div class="tables-row" id="geo_table_section" style="display:none;">
8098
<div id="top_regions_table"></div>
8199
<div id="aws_histogram"></div>
82100
</div>

0 commit comments

Comments
 (0)