Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3057 remove pedistrian signal histogram admin #3148

Merged
merged 3 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/views/admin/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ <h2>Severity Ratings by Label Type</h2>
<span>Average (surface problem): </span><span id="surface-mean"></span><br>
<span>Average (no sidewalk): </span><span id="no-sidewalk-mean"></span><br>
<span>Average (crosswalk): </span><span id="crosswalk-mean"></span><br>
<span>Average (pedestrian signal): </span><span id="signal-mean"></span><br>
<span>Average (all label types): </span><span id="labels-mean"></span><br>
</p>
<p>
Expand All @@ -559,7 +558,6 @@ <h2>Severity Ratings by Label Type</h2>
<span>Standard Deviation (surface problem): </span><span id="surface-std"></span><br>
<span>Standard Deviation (no sidewalk): </span><span id="no-sidewalk-std"></span><br>
<span>Standard Deviation (crosswalk): </span><span id="crosswalk-std"></span><br>
<span>Standard Deviation (pedestrian signal): </span><span id="signal-std"></span><br>
<span>Standard Deviation (all label types): </span><span id="labels-std"></span><br>
</p>
</div>
Expand Down
19 changes: 2 additions & 17 deletions public/javascripts/Admin/src/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,17 +355,13 @@ function Admin(_, $) {
$("#crosswalk-mean").html((crosswalkStats.mean).toFixed(2));
$("#crosswalk-std").html((crosswalkStats.std).toFixed(2));

var pedestrianSignalStats = getSummaryStats(pedestrianSignals, "severity");
misaugstad marked this conversation as resolved.
Show resolved Hide resolved
$("#signal-mean").html((pedestrianSignalStats.mean).toFixed(2));
$("#signal-std").html((pedestrianSignalStats.std).toFixed(2));

var allData = data.features;
var allDataStats = getSummaryStats(allData, "severity");
$("#labels-mean").html((allDataStats.mean).toFixed(2));
$("#labels-std").html((allDataStats.std).toFixed(2));

var subPlotHeight = 150; // Before, it was 150
var subPlotWidth = 130; // Before, it was 149
var subPlotHeight = 155; // Before, it was 150
var subPlotWidth = 220; // Before, it was 130

var chart = {
"hconcat": [
Expand Down Expand Up @@ -402,17 +398,6 @@ function Admin(_, $) {
"y": {"aggregate": "count", "type": "quantitative", "axis": {"title": ""}}
}
},
{
"height": subPlotHeight,
"width": subPlotWidth,
"data": {"values": pedestrianSignals},
"mark": "bar",
"encoding": {
"x": {"field": "severity", "type": "ordinal",
"axis": {"title": "Pedestrian Signal Severity", "labelAngle": 0}},
"y": {"aggregate": "count", "type": "quantitative", "axis": {"title": ""}}
}
},
],
"config": {
"axis": {
Expand Down