Skip to content

Commit

Permalink
improvements to labels and descriptions of penalties chart (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden committed Dec 9, 2022
1 parent 270a298 commit a1d88dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/penaltyPlot.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function penaltyPlot(penaltyData, submissionTime, startTime, endTime) {

var data = new google.visualization.DataTable();
data.addColumn('number', 'Age');
data.addColumn('number', 'Average Estimated Penalty');
data.addColumn('number', 'Current Estimated Penalty');
data.addColumn('number', 'QN Penalty');
data.addColumn('number', 'Estimated HN Penalty');
data.addColumn('number', 'HN Rank');

data.addRows(preparePenaltyPlotData(penaltyData, submissionTime));
Expand Down
6 changes: 3 additions & 3 deletions templates/stats.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@

<div id="upvotes_plot_div"></div>
<div class="plot-description">
This chart shows the history of this story's <span style="color: #55cccc; font-weight: bold;">upvotes</span> compared to the <span style="color: black; font-weight: bold">expected upvotes</span> for stories shown at the same ranks and times. See the <a href="https://github.com/social-protocols/news#about">about page</a> for further details.
This chart shows the history of this story's <span style="color: #55cccc; font-weight: bold;">upvotes</span> compared to the <span style="color: black; font-weight: bold">expected upvotes</span> for stories shown at the same ranks and times. See the <a href="https://github.com/social-protocols/news#readme">about page</a> for further details.
</div>

<hr/>

<div id="upvoterate_plot_div"></div>
<div class="plot-description">
This chart shows the history of this story's <span style="color: #0089F4; font-weight: bold;">estimated true upvote rate</span>: the predicted long-term ratio of upvotes to expected upvotes. See the <a href="https://github.com/social-protocols/news#about">about page</a> for further details.
This chart shows the history of this story's <span style="color: #0089F4; font-weight: bold;">estimated true upvote rate</span>: the predicted long-term ratio of upvotes to expected upvotes. See the <a href="https://github.com/social-protocols/news#readme">about page</a> for further details.
</div>

<hr/>

<div id="penalty_plot_div"></div>
<div class="plot-description">
This chart shows the history of the story's estimated <span style="color: #b32b6c; font-weight: bold;">current penalty</span> based on the discrepancy between the story's <span style="color: #FF6600; font-weight: bold;">HN rank</span> and its expected rank based on the published ranking formula. A factor based on the moving <span style="color: red; font-weight: bold;">average estimated penalty</span> is applied to the QN ranking score.
This chart shows the history of the story's estimated <span style="color: #b32b6c; font-weight: bold;">Hacker News penalty</span> based on the discrepancy between the story's <span style="color: #FF6600; font-weight: bold;">HN rank</span> and its expected rank based on the published ranking formula. The <span style="color: red; font-weight: bold;">Quality News Penalty</span> is then applied based on an upper bound of the moving average of the estimated penalty.
</div>

<hr/>
Expand Down

0 comments on commit a1d88dc

Please sign in to comment.