-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore the stats endpoint (mostly!)
This largely reverts commit cdddc39. Reading from a CSV is something of a one-time hack that's meant to buy me some time while we build a real API endpoint over in the geardb. This "temporary" disabling nearly made it 2 years, hah.
- Loading branch information
Showing
3 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
{{ block.super }} | ||
{# For now, use the Vega charting library for fast-and-easy charts #} | ||
{# I may substitute this later for raw D3 #} | ||
<script src="https://cdn.jsdelivr.net/npm/vega@4.3.0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vega-embed@3"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vega@5.28.0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.25.0"></script> | ||
<script> | ||
var possibleAffiliations = [ | ||
"MIT undergrad", | ||
|
@@ -17,12 +17,10 @@ | |
"MIT alum", | ||
"MIT affiliate", | ||
"Non-affiliate", | ||
"Student", | ||
"Unknown", | ||
]; | ||
|
||
var barChartTemplate = { | ||
"$schema": "https://vega.github.io/schema/vega/v4.json", | ||
"$schema": "https://vega.github.io/schema/vega/v5.json", | ||
"width": 900, | ||
"height": 300, | ||
"padding": 5, | ||
|
@@ -215,15 +213,6 @@ | |
{{ block.super }} | ||
|
||
<h1>Membership Statistics</h1> | ||
<div class="alert alert-danger"> | ||
<strong>July 14, 2022</strong> | ||
<p> | ||
I've temporarily taken down this page to support mitoc-gear modernizations. | ||
I anticipate we'll have the stats back some time in late July. Need data sooner? | ||
<a href="mailto:[email protected]">Contact me</a>. | ||
</p> | ||
</div> | ||
|
||
<p class="lead"> | ||
These visualizations are meant to give quick insights. Feel free to | ||
download the <a href="{% url 'json-membership_stats' %}">raw data</a> to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters