Skip to content

Commit

Permalink
Latest data
Browse files Browse the repository at this point in the history
  • Loading branch information
CHCRowley committed Oct 25, 2023
1 parent 9dc21dc commit 12db029
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1651,15 +1651,17 @@
// communication between the widget and direct manipulation events
if (x.selectize) {
var selectizeID = Object.keys(x.selectize)[i];
var items = x.selectize[selectizeID].items;
var options = x.selectize[selectizeID];
var first = [{value: "", label: "(All)"}];
var opts = {
options: first.concat(items),
searchField: "label",
valueField: "value",
labelField: "label",
maxItems: 50
};
var opts = $.extend({
options: first.concat(options.items),
searchField: "label",
valueField: "value",
labelField: "label",
maxItems: 50
},
options
);
var select = $("#" + selectizeID).find("select")[0];
var selectize = $(select).selectize(opts)[0].selectize;
// NOTE: this callback is triggered when *directly* altering
Expand Down Expand Up @@ -2370,7 +2372,7 @@ <h2>Welcome</h2>
department. CARS is our annual survey on the use of code in government
analysis. You can see the 2022 results in our <a href="https://best-practice-and-impact.github.io/CARS/">online
publication</a>.</p>
<p>This year we hope to get over 1,500 responses. So far, we’ve got 376
<p>This year we hope to get over 1,500 responses. So far, we’ve got 403
responses. We’re aiming for at least 20 from as many departments as
possible, which will allow us to create customised reports for those
departments. If you’re interested in seeing this, please promote the
Expand Down Expand Up @@ -2404,7 +2406,7 @@ <h2>Responses by department</h2>
#coding-freq-table {display: none;}
</style>
<div id="coding-freq-chart" role="img" aria-label="Chart. Click the show table button to present the data as a text table instead.">
<div id="htmlwidget-1a5b8543790f80f72eaf" style="width:800px;height:1050px;" class="plotly html-widget "></div>
<div id="htmlwidget-a998cc774a9e5687736b" style="width:800px;height:1150px;" class="plotly html-widget "></div>
</div>
<div id="coding-freq-table">
<table class="table" style="margin-left: auto; margin-right: auto;">
Expand All @@ -2421,15 +2423,15 @@ <h2>Responses by department</h2>
</tr>
<tr>
<td style="text-align:left;"> Department for Education (excl. agencies) </td>
<td style="text-align:right;"> 15 </td>
<td style="text-align:right;"> 19 </td>
</tr>
<tr>
<td style="text-align:left;"> Department for Energy Security &amp; Net Zero </td>
<td style="text-align:right;"> 5 </td>
<td style="text-align:right;"> 6 </td>
</tr>
<tr>
<td style="text-align:left;"> Department for Environment, Food and Rural Affairs (excl. agencies) </td>
<td style="text-align:right;"> 5 </td>
<td style="text-align:right;"> 6 </td>
</tr>
<tr>
<td style="text-align:left;"> Department for Levelling Up, Housing &amp; Communities (excl. agencies) </td>
Expand All @@ -2439,43 +2441,51 @@ <h2>Responses by department</h2>
<td style="text-align:left;"> Department for Transport (excl. agencies) </td>
<td style="text-align:right;"> 20 </td>
</tr>
<tr>
<td style="text-align:left;"> Food Standards Agency </td>
<td style="text-align:right;"> 5 </td>
</tr>
<tr>
<td style="text-align:left;"> Forest Research </td>
<td style="text-align:right;"> 17 </td>
</tr>
<tr>
<td style="text-align:left;"> HM Land Registry </td>
<td style="text-align:right;"> 21 </td>
<td style="text-align:right;"> 23 </td>
</tr>
<tr>
<td style="text-align:left;"> Home Office (excl. agencies) </td>
<td style="text-align:right;"> 5 </td>
</tr>
<tr>
<td style="text-align:left;"> Ministry of Defence (excl. agencies) </td>
<td style="text-align:right;"> 5 </td>
</tr>
<tr>
<td style="text-align:left;"> Ministry of Justice (excl. agencies) </td>
<td style="text-align:right;"> 34 </td>
<td style="text-align:right;"> 43 </td>
</tr>
<tr>
<td style="text-align:left;"> Office for National Statistics </td>
<td style="text-align:right;"> 138 </td>
</tr>
<tr>
<td style="text-align:left;"> Other </td>
<td style="text-align:right;"> 5 </td>
<td style="text-align:right;"> 6 </td>
</tr>
<tr>
<td style="text-align:left;"> UK Health Security Agency </td>
<td style="text-align:right;"> 8 </td>
<td style="text-align:right;"> 11 </td>
</tr>
</tbody>
<tfoot>
<tr>
<td style="padding: 0; border:0;" colspan="100%"><sup>a</sup> Sample size = 376</td>
<td style="padding: 0; border:0;" colspan="100%"><sup>a</sup> Sample size = 403</td>
</tr>
</tfoot>
</table>
</div>
<script type="application/json" data-for="htmlwidget-1a5b8543790f80f72eaf">{"x":{"visdat":{"144c1ca13ef8":["function () ","plotlyVisDat"]},"cur_data":"144c1ca13ef8","attrs":{"144c1ca13ef8":{"x":[8,5,138,34,5,21,17,20,42,5,5,15,6],"y":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","HM Land Registry","Forest Research","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"],"marker":{"color":"#004556"},"orientation":"h","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"bar"}},"layout":{"width":800,"height":1050,"margin":{"b":100,"l":60,"t":25,"r":10},"xaxis":{"domain":[0,1],"automargin":true,"title":"Number of respondents","tickfont":{"size":14},"titlefont":{"size":16.8}},"yaxis":{"domain":[0,1],"automargin":true,"title":"","tickfont":{"size":14},"titlefont":{"size":16.8},"type":"category","categoryorder":"array","categoryarray":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","HM Land Registry","Forest Research","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"]},"hoverlabel":{"bgcolor":"white","font":{"size":14}},"annotations":[{"x":1,"y":0,"text":"Sample size = 376","showarrow":false,"xanchor":"right","yanchor":"auto","xshift":0,"yshift":-100,"xref":"paper","yref":"paper","font":{"size":14}},{"text":"Department","y":1,"x":"min","showarrow":false,"yshift":30,"xref":"paper","yref":"paper","font":{"size":16.8}}],"shapes":[{"type":"line","line":{"color":"#ff6900"},"x0":20,"y0":-0.5,"x1":20,"y1":12.5}],"hovermode":"closest","showlegend":false},"source":"A","config":{"modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false,"displayModeBar":false},"data":[{"x":[8,5,138,34,5,21,17,20,42,5,5,15,6],"y":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","HM Land Registry","Forest Research","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"],"marker":{"color":"#004556","line":{"color":"rgba(31,119,180,1)"}},"orientation":"h","type":"bar","error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script>
<script type="application/json" data-for="htmlwidget-a998cc774a9e5687736b">{"x":{"visdat":{"4f5413ed4e1b":["function () ","plotlyVisDat"]},"cur_data":"4f5413ed4e1b","attrs":{"4f5413ed4e1b":{"x":[11,6,138,43,5,5,23,17,5,20,42,6,6,19,6],"y":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","Home Office (excl. agencies)","HM Land Registry","Forest Research","Food Standards Agency","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"],"marker":{"color":"#004556"},"orientation":"h","alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"bar"}},"layout":{"width":800,"height":1150,"margin":{"b":100,"l":60,"t":25,"r":10},"xaxis":{"domain":[0,1],"automargin":true,"title":"Number of respondents","tickfont":{"size":14},"titlefont":{"size":16.8}},"yaxis":{"domain":[0,1],"automargin":true,"title":"","tickfont":{"size":14},"titlefont":{"size":16.8},"type":"category","categoryorder":"array","categoryarray":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","Home Office (excl. agencies)","HM Land Registry","Forest Research","Food Standards Agency","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"]},"hoverlabel":{"bgcolor":"white","font":{"size":14}},"annotations":[{"x":1,"y":0,"text":"Sample size = 403","showarrow":false,"xanchor":"right","yanchor":"auto","xshift":0,"yshift":-100,"xref":"paper","yref":"paper","font":{"size":14}},{"text":"Department","y":1,"x":"min","showarrow":false,"yshift":30,"xref":"paper","yref":"paper","font":{"size":16.8}}],"shapes":[{"type":"line","line":{"color":"#ff6900"},"x0":20,"y0":-0.5,"x1":20,"y1":14.5}],"hovermode":"closest","showlegend":false},"source":"A","config":{"modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false,"displayModeBar":false},"data":[{"x":[11,6,138,43,5,5,23,17,5,20,42,6,6,19,6],"y":["UK Health Security Agency","Other","Office for National Statistics","Ministry of Justice (excl. agencies)","Ministry of Defence (excl. agencies)","Home Office (excl. agencies)","HM Land Registry","Forest Research","Food Standards Agency","Department for Transport (excl. agencies)","Department for Levelling Up, Housing<br>& Communities (excl. agencies)","Department for Environment, Food and<br>Rural Affairs (excl. agencies)","Department for Energy Security & Net<br>Zero","Department for Education (excl. agencies)","Defence Science and Technology Laboratory"],"marker":{"color":"#004556","line":{"color":"rgba(31,119,180,1)"}},"orientation":"h","type":"bar","error_y":{"color":"rgba(31,119,180,1)"},"error_x":{"color":"rgba(31,119,180,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script>
</div>
<div id="cant-see-your-department" class="section level2">
<h2>Can’t see your department?</h2>
Expand Down

0 comments on commit 12db029

Please sign in to comment.