Last active
December 5, 2017 00:25
-
-
Save fogonwater/b9d93fb5270ef024b91f0523cd1cfc68 to your computer and use it in GitHub Desktop.
Draft visualisation of NZ Government structure
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
//jetpack | |
!function(a,b){"undefined"!=typeof module&&module.exports?module.exports=b(require("d3")):"function"==typeof define&&define.amd?define(["d3"],b):a.d3=b(a.d3)}(this,function(a){function c(a){if("string"==typeof a){var e,c={},d=a.split(b);for(a=d.shift();e=d.shift();)"."==e?c.class=c.class?c.class+" "+d.shift():d.shift():"#"==e&&(c.id=d.shift());return c.id||c.class?{tag:a,attr:c}:a}return a}function d(b){var c=a.namespace||a.ns.qualify;return"function"==typeof b?b:(b=c(b)).local?function(){return this.ownerDocument.createElementNS(b.space,b.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,b)}}function e(a){return"function"==typeof a?a:function(){return this.querySelector(a)}}a.selection.prototype.translate=function(a){return this.attr("transform",function(b,c){return"translate("+["function"==typeof a?a.call(this,b,c):a]+")"})},a.transition.prototype.translate=function(a){return this.attr("transform",function(b,c){return"translate("+["function"==typeof a?a.call(this,b,c):a]+")"})},a.selection.prototype.tspans=function(a,b){return this.selectAll("tspan").data(a).enter().append("tspan").text(function(a){return a}).attr("x",0).attr("dy",function(a,c){return c?b||15:0})},a.selection.prototype.append=function(a){var e,b=c(a);a=b.attr?b.tag:a,a=d(a),e=this.select(function(){return this.appendChild(a.apply(this,arguments))});for(var a in b.attr)e.attr(a,b.attr[a]);return e},a.selection.prototype.insert=function(a,b){var g,f=c(a);a=f.attr?f.tag:a,a=d(a),b=e(b),g=this.select(function(){return this.insertBefore(a.apply(this,arguments),b.apply(this,arguments)||null)});for(var a in f.attr)g.attr(a,f.attr[a]);return g},a.selection.enter&&(a.selection.enter.prototype.append=a.selection.prototype.append,a.selection.enter.prototype.insert=a.selection.prototype.insert);var b=/([\.#])/g;a.wordwrap=function(a,b){var c=a.split(" "),d=[],e=[],f=b||40,g=0;return c.forEach(function(a){g+a.length>f&&(d.push(e.join(" ")),e.length=0,g=0),g+=a.length,e.push(a)}),e.length&&d.push(e.join(" ")),d},a.ascendingKey=function(a){return"function"==typeof a?function(b,c){return a(b)<a(c)?-1:a(b)>a(c)?1:a(b)>=a(c)?0:NaN}:function(b,c){return b[a]<c[a]?-1:b[a]>c[a]?1:b[a]>=c[a]?0:NaN}},a.descendingKey=function(a){return"function"==typeof a?function(b,c){return a(c)<a(b)?-1:a(c)>a(b)?1:a(c)>=a(b)?0:NaN}:function(b,c){return c[a]<b[a]?-1:c[a]>b[a]?1:c[a]>=b[a]?0:NaN}},a.f=function(){for(var a=arguments,b=0,c=a.length;b<c;)"string"!=typeof a[b]&&"number"!=typeof a[b]||(a[b]=function(a){return function(b){return b[a]}}(a[b])),b++;return function(b){for(var c=0,d=a.length;c++<d;)b=a[c-1].call(this,b);return b}},"undefined"==typeof window||window.hasOwnProperty("ƒ")||(window.ƒ=a.f);var f=a.selection.prototype.on;return a.selection.prototype.on=function(a,b,c){if("string"==typeof a&&a.indexOf(" ")>-1){a=a.split(" ");for(var d=0;d<a.length;d++)f.apply(this,[a[d],b,c])}else f.apply(this,[a,b,c]);return this},a.selection.prototype.prop=a.selection.prototype.property,a}); | |
//starter kit | |
!function(){function a(a){a.conventions=function(b){return b=b||{},b.margin=b.margin||{top:20,right:20,bottom:20,left:80},b.width=b.width||b.totalWidth-b.margin.left-b.margin.right||900,b.height=b.height||b.totalHeight-b.margin.top-b.margin.bottom||460,b.totalWidth=b.width+b.margin.left+b.margin.right,b.totalHeight=b.height+b.margin.top+b.margin.bottom,b.parentSel=b.parentSel||a.select("body"),b.svg=b.svg||b.parentSel.append("svg").attr("width",b.width+b.margin.left+b.margin.right).attr("height",b.height+b.margin.top+b.margin.bottom).append("g").attr("transform","translate("+b.margin.left+","+b.margin.top+")"),b.color=b.color||a.scaleOrdinal().range(a.schemeCategory10),b.x=b.x||a.scaleLinear().range([0,b.width]),b.y=b.y||a.scaleLinear().range([b.height,0]),b.rScale=b.rScale||a.scaleSqrt().range([5,20]),b.line=b.line||a.line(),b.xAxis=b.xAxis||a.axisBottom().scale(b.x),b.yAxis=b.yAxis||a.axisLeft().scale(b.y),b.drawAxis=function(){b.svg.append("g").attr("class","x axis").attr("transform","translate(0,"+b.height+")").call(b.xAxis),b.svg.append("g").attr("class","y axis").call(b.yAxis)},b},a.attachTooltip=function(b,c){function e(b){a.select(".tooltip").classed("tooltip-hidden",!1).html("").dataAppend(c,"div").html(function(a){return a(b)}),a.select(this).classed("tooltipped",!0)}function f(b){var c=a.select(".tooltip");if(c.size()){var d=a.event,e=d.clientX,f=d.clientY,g=window.scrollY?window.scrollY:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;n=c.node(),nBB=n.getBoundingClientRect(),c.style("top",f+g-nBB.height-18+"px"),c.style("left",Math.min(Math.max(20,e-nBB.width/2),window.innerWidth-nBB.width-20)+"px")}}function g(b){a.select(".tooltip").classed("tooltip-hidden",!0),a.selectAll(".tooltipped").classed("tooltipped",!1)}if(b.size()){b.on("mouseover.attachTooltip",e).on("mousemove.attachTooltip",f).on("mouseout.attachTooltip",g).on("click.attachTooltip",function(a){console.log(a)});var d=b.datum();c=c||a.keys(d).filter(function(a){return"object"!=typeof d[a]&&"array"!=d[a]}).map(function(a){return function(b){return a+": <b>"+b[a]+"</b>"}})}},a.selection.prototype.dataAppend=function(a,b){return this.selectAll(b).data(a).enter().append(b)}}"object"==typeof d3&&d3.version?a(d3):"function"==typeof define&&define.amd&&define(["lib/d3"],a)}(); |
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
<!DOCTYPE html> | |
<html lang="eng"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>NZ Government Structure</title> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
body { | |
font-family: Helvetic, Arial, Sans-Serif; | |
color: #333; | |
} | |
div.container { | |
margin-top: 10px; | |
} | |
.axis path, | |
.axis line { | |
fill: none; | |
stroke: #000; | |
shape-rendering: crispEdges; | |
} | |
.organisation { | |
fill: #808080; | |
} | |
</style> | |
</head> | |
<body> | |
<h3>Structure of NZ Government (very working draft!)</h3> | |
<p>Scroll around to explore. Dark dots are sectors; pale dots are organisations.</p> | |
<div id="chart" style="text-align:center"></div> | |
<script type="text/javascript" src="helpers.js"></script> | |
<script type="text/javascript" src="script.js"></script> | |
</body> | |
</html> |
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
var q = d3.queue() | |
.defer(d3.csv, 'tree-nz-govt.csv') | |
.await(visualize); | |
var sf = 3.8, | |
c = d3.conventions({ | |
parentSel: d3.select('#chart'), | |
width: 1500, | |
height: 3200 | |
}); | |
var tree = d3.tree() | |
.size([c.height, c.width - 120]); | |
function visualize(errors, data) { | |
var g = c.svg.append("g").attr("transform", "translate(40,0)"); | |
var root = d3.stratify() | |
.id(function(d) { return d.id; }) | |
.parentId(function(d) { return d.parent_id; }) | |
(data); | |
root | |
.sum(function(d) { return d.value; }) | |
.sort(function(a, b) { return b.height - a.height || a.id.localeCompare(b.id); }); | |
tree(root); | |
var link = g.selectAll(".link") | |
.data(root.descendants().slice(1)) | |
.enter().append("path") | |
.attr("class", "link") | |
.attr("fill", "none") | |
.attr("stroke", "#e1e1e1") | |
.attr("stroke-width", 1.5) | |
.attr("d", function(d) { | |
return "M" + d.y + "," + d.x | |
+ "C" + (d.y + d.parent.y) / 2 + "," + d.x | |
+ " " + (d.y + d.parent.y) / 2 + "," + d.parent.x | |
+ " " + d.parent.y + "," + d.parent.x; | |
}); | |
var node = g.selectAll(".node") | |
.data(root.descendants()) | |
.enter().append("g") | |
.attr("class", function(d) { return "node" + (d.children ? " node--internal" : " node--leaf"); }) | |
.attr("transform", function(d) { return "translate(" + d.y + "," + d.x + ")"; }) | |
node.append("circle") | |
.attr("fill", function(d) { | |
if (d.data.type == 'sector') { return '#666'} | |
else { return '#ccc'} | |
}) | |
.attr("r", 1.8); | |
node.append("text") | |
.attr("font-size", 10) | |
.attr("dy", 3) | |
.attr("x", function(d) { return d.children ? -8 : 8; }) | |
.attr("class", function(d) { return d.data.type; }) | |
.style("text-anchor", function(d) { return d.children ? "end" : "start"; }) | |
.text(function(d) { | |
if (d.data.type == 'organisation') { return d.data.name;} | |
else {return d.data.name;} | |
}); | |
}; |
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
id | parent_id | name | sector | type | |
---|---|---|---|---|---|
o1000 | o941 | Ministry of Youth Development | Public Service | organisation | |
o1001 | o932 | Motor Vehicle Traders Register | Public Service | organisation | |
o1002 | s5 | National Advisory Council on the Employment of Women | Public Service | organisation | |
o1005 | s14 | IT Health Board | Public Sector | organisation | |
o1006 | o922 | National Library of New Zealand | Public Service | organisation | |
o1008 | o1096 | National Rural Fire Authority | Crown agents | organisation | |
o1009 | s14 | National Screening Unit | Public Sector | organisation | |
o1010 | o935 | New Zealand Aid Programme | Public Service | organisation | |
o1011 | o1052 | New Zealand Army | Non-Public Service departments | organisation | |
o1012 | o950 | New Zealand Debt Management Office | Public Service | organisation | |
o1013 | o950 | New Zealand Export Credit Office | Public Service | organisation | |
o1014 | o927 | New Zealand Geographic Board | Public Service | organisation | |
o1017 | s14 | New Zealand Parole Board | Public Sector | organisation | |
o1018 | o932 | New Zealand Petroleum & Minerals | Public Service | organisation | |
o1019 | o1149 | New Zealand Quality College | Autonomous crown entities | organisation | |
o1020 | o941 | Office for Disability Issues | Public Service | organisation | |
o1021 | o941 | Office for Seniors | Public Service | organisation | |
o1023 | o922 | The Office of Ethnic Communities | Public Service | organisation | |
o1024 | o1121 | Office of Human Rights Proceedings | Independent crown entities | organisation | |
o1025 | o938 | Office of Treaty Settlements | Public Service | organisation | |
o1026 | o1053 | Organised & Financial Crime Agency New Zealand | Non-Public Service departments | organisation | |
o1027 | o927 | Overseas Investment Office | Public Service | organisation | |
o1028 | o932 | Personal Property Securities Register | Public Service | organisation | |
o1030 | o932 | Radio Spectrum Management | Public Service | organisation | |
o1031 | o932 | Registrar of Unions | Public Service | organisation | |
o1032 | s14 | Remuneration Authority | Public Sector | organisation | |
o1033 | o1052 | Royal New Zealand Airforce | Non-Public Service departments | organisation | |
o1034 | o1052 | Royal New Zealand Navy | Non-Public Service departments | organisation | |
o1036 | o932 | State Housing Appeals Authority | Public Service | organisation | |
o1037 | o941 | StudyLink | Public Service | organisation | |
o1038 | s5 | Supreme Court of New Zealand | Public Service | organisation | |
o1040 | o934 | TeachNZ | Public Service | organisation | |
o1041 | o1149 | Telarc SAI Limited | Autonomous crown entities | organisation | |
o1043 | o927 | Valuers Registration Board | Public Service | organisation | |
o1044 | o1052 | Veterans' Affairs New Zealand | Non-Public Service departments | organisation | |
o1045 | s5 | Waitangi Tribunal | Public Service | organisation | |
o1048 | o932 | Weathertight Services | Public Service | organisation | |
o1049 | o941 | Work and Income | Public Service | organisation | |
o1050 | s5 | Youth Court | Public Service | organisation | |
o1052 | s8 | New Zealand Defence Force | Non-Public Service departments | organisation | |
o1053 | s8 | New Zealand Police | Non-Public Service departments | organisation | |
o1054 | s8 | New Zealand Security Intelligence Service | Non-Public Service departments | organisation | |
o1055 | s8 | Office of the Clerk of the House of Representatives | Non-Public Service departments | organisation | |
o1056 | s8 | Parliamentary Counsel Office | Non-Public Service departments | organisation | |
o1057 | s8 | Parliamentary Service | Non-Public Service departments | organisation | |
o1059 | s104 | Auckland District Health Board | District Health Boards | organisation | |
o1060 | s104 | Bay of Plenty District Health Board | District Health Boards | organisation | |
o1061 | s104 | Canterbury District Health Board | District Health Boards | organisation | |
o1062 | s104 | Capital & Coast District Health Board | District Health Boards | organisation | |
o1063 | s104 | Counties Manukau District Health Board | District Health Boards | organisation | |
o1064 | s104 | Hawke's Bay District Health Board | District Health Boards | organisation | |
o1065 | s104 | Hutt Valley District Health Board | District Health Boards | organisation | |
o1066 | s104 | Lakes District Health Board | District Health Boards | organisation | |
o1067 | s104 | MidCentral District Health Board | District Health Boards | organisation | |
o1068 | s104 | Nelson Marlborough District Health Board | District Health Boards | organisation | |
o1069 | s104 | Northland District Health Board | District Health Boards | organisation | |
o1071 | s104 | South Canterbury District Health Board | District Health Boards | organisation | |
o1072 | s104 | Southern District Health Board | District Health Boards | organisation | |
o1074 | s104 | Hauora Tairāwhiti | District Health Boards | organisation | |
o1075 | s104 | Taranaki District Health Board | District Health Boards | organisation | |
o1076 | s104 | Waikato District Health Board | District Health Boards | organisation | |
o1077 | s104 | Wairarapa District Health Board | District Health Boards | organisation | |
o1078 | s104 | Waitemata District Health Board | District Health Boards | organisation | |
o1079 | s104 | West Coast District Health Board | District Health Boards | organisation | |
o1080 | s104 | Whanganui District Health Board | District Health Boards | organisation | |
o1082 | s20 | Accident Compensation Corporation | Crown agents | organisation | |
o1083 | s20 | Careers New Zealand | Crown agents | organisation | |
o1084 | s20 | Civil Aviation Authority of New Zealand | Crown agents | organisation | |
o1085 | s20 | Earthquake Commission | Crown agents | organisation | |
o1086 | s20 | Energy Efficiency and Conservation Authority | Crown agents | organisation | |
o1087 | s20 | Environmental Protection Authority | Crown agents | organisation | |
o1088 | s20 | Health Promotion Agency | Crown agents | organisation | |
o1089 | s20 | Health Research Council of New Zealand | Crown agents | organisation | |
o1090 | s20 | Housing New Zealand | Crown agents | organisation | |
o1093 | s20 | Maritime New Zealand | Crown agents | organisation | |
o1094 | s20 | Antarctica New Zealand | Crown agents | organisation | |
o1095 | s20 | New Zealand Blood Service | Crown agents | organisation | |
o1096 | s20 | New Zealand Fire Service Commission | Crown agents | organisation | |
o1097 | s20 | New Zealand Qualifications Authority | Crown agents | organisation | |
o1098 | s20 | New Zealand Tourism Board | Crown agents | organisation | |
o1099 | s20 | New Zealand Trade and Enterprise | Crown agents | organisation | |
o1100 | s20 | New Zealand Transport Agency | Crown agents | organisation | |
o1101 | s20 | New Zealand Walking Access Commission | Crown agents | organisation | |
o1102 | s20 | Pharmaceutical Management Agency | Crown agents | organisation | |
o1103 | s20 | Real Estate Agents Authority | Crown agents | organisation | |
o1104 | s20 | Social Workers Registration Board | Crown agents | organisation | |
o1105 | s20 | Sport New Zealand | Crown agents | organisation | |
o1109 | o1096 | New Zealand Fire Service | Crown agents | organisation | |
o1110 | s20 | Tertiary Education Commission | Crown agents | organisation | |
o1112 | s26 | Broadcasting Standards Authority | Independent crown entities | organisation | |
o1113 | s26 | Children's Commissioner | Independent crown entities | organisation | |
o1114 | s26 | Commerce Commission | Independent crown entities | organisation | |
o1115 | s26 | Drug Free Sport New Zealand | Independent crown entities | organisation | |
o1116 | s26 | Electoral Commission | Independent crown entities | organisation | |
o1117 | s26 | Electricity Authority | Independent crown entities | organisation | |
o1118 | s26 | External Reporting Board | Independent crown entities | organisation | |
o1119 | s26 | Financial Markets Authority | Independent crown entities | organisation | |
o1120 | s26 | Health and Disability Commissioner | Independent crown entities | organisation | |
o1121 | s26 | Human Rights Commission | Independent crown entities | organisation | |
o1122 | s26 | Independent Police Conduct Authority | Independent crown entities | organisation | |
o1123 | s26 | Law Commission | Independent crown entities | organisation | |
o1124 | s26 | New Zealand Productivity Commission | Independent crown entities | organisation | |
o1125 | s26 | Office of Film and Literature Classification | Independent crown entities | organisation | |
o1126 | s26 | Privacy Commissioner | Independent crown entities | organisation | |
o1127 | s26 | Takeovers Panel | Independent crown entities | organisation | |
o1128 | s26 | Transport Accident Investigation Commission | Independent crown entities | organisation | |
o1130 | s23 | Creative New Zealand | Autonomous crown entities | organisation | |
o1131 | s23 | NZ On Air | Autonomous crown entities | organisation | |
o1134 | s23 | Social Policy Evaluation and Research Unit - Superu | Autonomous crown entities | organisation | |
o1135 | s23 | Government Superannuation Fund Authority | Autonomous crown entities | organisation | |
o1136 | s23 | Guardians of New Zealand Superannuation | Autonomous crown entities | organisation | |
o1137 | s23 | Museum of New Zealand Te Papa Tongarewa | Autonomous crown entities | organisation | |
o1138 | s23 | New Zealand Artificial Limb Service | Autonomous crown entities | organisation | |
o1139 | s23 | New Zealand Film Commission | Autonomous crown entities | organisation | |
o1140 | s23 | Heritage New Zealand | Autonomous crown entities | organisation | |
o1141 | s23 | New Zealand Lotteries Commission | Autonomous crown entities | organisation | |
o1142 | s23 | New Zealand Symphony Orchestra | Autonomous crown entities | organisation | |
o1143 | s23 | Education Council of Aotearoa New Zealand | Autonomous crown entities | organisation | |
o1144 | s23 | Public Trust | Autonomous crown entities | organisation | |
o1145 | s23 | Commission for Financial Capability | Autonomous crown entities | organisation | |
o1146 | s23 | Standards New Zealand | Autonomous crown entities | organisation | |
o1147 | o939 | Te Māngai Pāho | Autonomous crown entities | organisation | |
o1148 | s23 | Māori Language Commission | Autonomous crown entities | organisation | |
o1149 | s23 | Accreditation Council | Autonomous crown entities | organisation | |
o1151 | s32 | AgResearch Limited | Crown Research Institutes | organisation | |
o1153 | s32 | Institute of Environmental Science and Research Limited | Crown Research Institutes | organisation | |
o1154 | s32 | GNS Science | Crown Research Institutes | organisation | |
o1155 | s32 | Landcare Research New Zealand Limited | Crown Research Institutes | organisation | |
o1156 | s32 | National Institute of Water and Atmospheric Research Limited | Crown Research Institutes | organisation | |
o1157 | s32 | Scion | Crown Research Institutes | organisation | |
o1160 | s32 | Plant & Food Research | Crown Research Institutes | organisation | |
o11611 | o922 | Births, Deaths and Marriages | Public Service | organisation | |
o1162 | s35 | New Zealand Venture Investment Fund Limited | Other companies | organisation | |
o1163 | s35 | Radio New Zealand Limited | Other companies | organisation | |
o1164 | s35 | Television New Zealand Limited | Other companies | organisation | |
o1168 | s47 | Auckland University of Technology | Universities | organisation | |
o1169 | s47 | Lincoln University | Universities | organisation | |
o1170 | s47 | Massey University | Universities | organisation | |
o1171 | s47 | The University of Auckland | Universities | organisation | |
o1172 | s47 | University of Canterbury | Universities | organisation | |
o1173 | s47 | University of Otago | Universities | organisation | |
o1174 | s47 | University of Waikato | Universities | organisation | |
o1175 | s47 | Victoria University of Wellington | Universities | organisation | |
o1177 | s50 | Aoraki Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1178 | s50 | Bay of Plenty Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1179 | s50 | Ara Institute of Canterbury | Polytechnics/Institutes of technology | organisation | |
o1180 | s50 | Eastern Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1181 | s50 | Manukau Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1182 | s50 | Nelson Marlborough Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1183 | s50 | NorthTec | Polytechnics/Institutes of technology | organisation | |
o1184 | s50 | Open Polytechnic of New Zealand | Polytechnics/Institutes of technology | organisation | |
o1185 | s50 | Otago Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1186 | s50 | Southern Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1187 | s50 | Tai Poutini Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1188 | o1180 | Tairāwhiti Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1189 | o1169 | Telford Rural Polytechnic | Universities | organisation | |
o1190 | s50 | Universal College of Learning | Polytechnics/Institutes of technology | organisation | |
o1191 | s50 | Waiariki Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1192 | s50 | Waikato Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1194 | s50 | WelTec | Polytechnics/Institutes of technology | organisation | |
o1195 | s50 | Western Institute of Technology at Taranaki | Polytechnics/Institutes of technology | organisation | |
o1196 | s50 | Whitireia Community Polytechnic | Polytechnics/Institutes of technology | organisation | |
o1198 | s50 | Unitec Institute of Technology | Polytechnics/Institutes of technology | organisation | |
o1206 | s53 | Te Wānanga o Aotearoa | Wānanga | organisation | |
o1207 | s53 | Te Wānanga o Raukawa | Wānanga | organisation | |
o1208 | s53 | Te Whare Wānanga o Awanuiārangi | Wānanga | organisation | |
o1214 | s41 | Te Kura | School boards of trustees | organisation | |
o1237 | s80 | Controller and Auditor-General | Offices of Parliament | organisation | |
o1238 | s80 | Office of the Ombudsman | Offices of Parliament | organisation | |
o1239 | s80 | Parliamentary Commissioner for the Environment | Offices of Parliament | organisation | |
o1241 | s68 | Agricultural and Marketing Research and Development Trust | Trusts | organisation | |
o1242 | s68 | Asia New Zealand Foundation | Trusts | organisation | |
o1243 | s68 | Leadership Development Centre | Trusts | organisation | |
o1244 | s68 | Ngāi Tahu Ancillary Claims Trust | Trusts | organisation | |
o1245 | s68 | Pacific Cooperation Foundation | Trusts | organisation | |
o1246 | s68 | Pacific Business Trust | Trusts | organisation | |
o1249 | o1254 | Auckland/Waikato Fish and Game Council | Regional | organisation | |
o1250 | o1254 | Central South Island Fish and Game Council | Regional | organisation | |
o1251 | o1254 | Eastern Fish and Game Council | Regional | organisation | |
o1252 | o1254 | Hawke's Bay Fish and Game Council | Regional | organisation | |
o1253 | o1254 | Nelson/Marlborough Fish and Game Council | Regional | organisation | |
o1254 | s59 | New Zealand Fish and Game Council | Fish and game councils | organisation | |
o1255 | s68 | New Zealand Game Bird Habitat Trust Board | Trusts | organisation | |
o1256 | o1254 | North Canterbury Fish and Game Council | Regional | organisation | |
o1257 | o1254 | Northland Fish and Game Council | Regional | organisation | |
o1258 | o1254 | Otago Fish and Game Council | Regional | organisation | |
o1260 | o1254 | Southland Fish and Game Council | Regional | organisation | |
o1261 | o1254 | Taranaki Fish and Game Council | Regional | organisation | |
o1262 | o1254 | Wellington Fish and Game Council | Regional | organisation | |
o1263 | o1254 | West Coast Fish and Game Council | Regional | organisation | |
o1265 | o950 | New Zealand Government Property Corporation | Other (bodies corporate) | organisation | |
o1266 | s74 | New Zealand Lottery Grants Board | Other (unincorporated) | organisation | |
o1267 | s77 | REANNZ | Public Finance Act Schedule 4a companies | organisation | |
o1269 | s83 | Air New Zealand | State-owned enterprises | organisation | |
o1270 | s2 | Reserve Bank of New Zealand | State Services | organisation | |
o1272 | s92 | Bay of Plenty Regional Council | Regional Council | organisation | |
o1273 | s92 | Environment Canterbury | Regional Council | organisation | |
o1274 | s92 | Hawke's Bay Regional Council | Regional Council | organisation | |
o1275 | s92 | Manawatu-Wanganui Regional Council | Regional Council | organisation | |
o1276 | s92 | Northland Regional Council | Regional Council | organisation | |
o1277 | s92 | Otago Regional Council | Regional Council | organisation | |
o1278 | s92 | Southland Regional Council | Regional Council | organisation | |
o1279 | s92 | Taranaki Regional Council | Regional Council | organisation | |
o1280 | s92 | Waikato Regional Council | Regional Council | organisation | |
o1281 | s92 | Wellington Regional Council | Regional Council | organisation | |
o1282 | s92 | West Coast Regional Council | Regional Council | organisation | |
o1284 | s98 | Auckland Council | City Council | organisation | |
o1285 | s98 | Christchurch City Council | City Council | organisation | |
o1286 | s98 | Dunedin City Council | City Council | organisation | |
o1287 | s98 | Hamilton City Council | City Council | organisation | |
o1288 | s98 | Hutt City Council | City Council | organisation | |
o1289 | s98 | Invercargill City Council | City Council | organisation | |
o1290 | s98 | Napier City Council | City Council | organisation | |
o1291 | s98 | Nelson City Council | City Council | organisation | |
o1292 | s98 | Palmerston North City Council | City Council | organisation | |
o1293 | s98 | Porirua City Council | City Council | organisation | |
o1294 | s98 | Tauranga City Council | City Council | organisation | |
o1295 | s98 | Upper Hutt City Council | City Council | organisation | |
o1296 | s98 | Wellington City Council | City Council | organisation | |
o1298 | s101 | Ashburton District Council | District Council | organisation | |
o1300 | s101 | Buller District Council | District Council | organisation | |
o1301 | s101 | Carterton District Council | District Council | organisation | |
o1302 | s101 | Central Hawke's Bay District Council | District Council | organisation | |
o1303 | s101 | Central Otago District Council | District Council | organisation | |
o1304 | s101 | Clutha District Council | District Council | organisation | |
o1305 | s101 | Far North District Council | District Council | organisation | |
o1306 | s101 | Gisborne District Council | District Council | organisation | |
o1307 | s101 | Gore District Council | District Council | organisation | |
o1308 | s101 | Grey District Council | District Council | organisation | |
o1309 | s101 | Hastings District Council | District Council | organisation | |
o1310 | s101 | Hauraki District Council | District Council | organisation | |
o1311 | s101 | Horowhenua District Council | District Council | organisation | |
o1312 | s101 | Hurunui District Council | District Council | organisation | |
o1313 | s101 | Kaikoura District Council | District Council | organisation | |
o1314 | s101 | Kaipara District Council | District Council | organisation | |
o1315 | s101 | Kapiti Coast District Council | District Council | organisation | |
o1316 | s101 | Kawerau District Council | District Council | organisation | |
o1317 | s101 | Mackenzie District Council | District Council | organisation | |
o1318 | s101 | Manawatu District Council | District Council | organisation | |
o1319 | s101 | Marlborough District Council | District Council | organisation | |
o1321 | s101 | Matamata-Piako District Council | District Council | organisation | |
o1322 | s101 | New Plymouth District Council | District Council | organisation | |
o1323 | s101 | Opotiki District Council | District Council | organisation | |
o1324 | s101 | Otorohanga District Council | District Council | organisation | |
o1325 | s101 | Queenstown-Lakes District Council | District Council | organisation | |
o1326 | s101 | Rangitikei District Council | District Council | organisation | |
o1327 | s101 | Rotorua Lakes Council | District Council | organisation | |
o1328 | s101 | Ruapehu District Council | District Council | organisation | |
o1329 | s101 | Selwyn District Council | District Council | organisation | |
o1330 | s101 | South Taranaki District Council | District Council | organisation | |
o1331 | s101 | South Waikato District Council | District Council | organisation | |
o1332 | s101 | South Wairarapa District Council | District Council | organisation | |
o1333 | s101 | Southland District Council | District Council | organisation | |
o1334 | s101 | Stratford District Council | District Council | organisation | |
o1335 | s101 | Tararua District Council | District Council | organisation | |
o1336 | s101 | Tasman District Council | District Council | organisation | |
o1337 | s101 | Taupo District Council | District Council | organisation | |
o1338 | s101 | Thames-Coromandel District Council | District Council | organisation | |
o1339 | s101 | Timaru District Council | District Council | organisation | |
o1340 | s101 | Waikato District Council | District Council | organisation | |
o1341 | s101 | Waimakariri District Council | District Council | organisation | |
o1342 | s101 | Waimate District Council | District Council | organisation | |
o1343 | s101 | Waipa District Council | District Council | organisation | |
o1344 | s101 | Wairoa District Council | District Council | organisation | |
o1345 | s101 | Waitaki District Council | District Council | organisation | |
o1346 | s101 | Waitomo District Council | District Council | organisation | |
o1347 | s101 | Whanganui District Council | District Council | organisation | |
o1348 | s101 | Western Bay of Plenty District Council | District Council | organisation | |
o1349 | s101 | Westland District Council | District Council | organisation | |
o1350 | s101 | Whakatāne District Council | District Council | organisation | |
o1351 | s101 | Whangarei District Council | District Council | organisation | |
o1353 | s101 | Chatham Islands Council | District Council | organisation | |
o1355 | s77 | Crown Fibre Holdings Limited | Public Finance Act Schedule 4a companies | organisation | |
o1356 | s77 | FairWay Resolution Limited | Public Finance Act Schedule 4a companies | organisation | |
o1357 | s77 | Health Benefits Limited | Public Finance Act Schedule 4a companies | organisation | |
o1360 | s20 | Callaghan Innovation | Crown agents | organisation | |
o1361 | s20 | Education New Zealand | Crown agents | organisation | |
o1362 | s20 | Health Quality and Safety Commission New Zealand | Crown agents | organisation | |
o1364 | s77 | Crown Asset Management Limited | Public Finance Act Schedule 4a companies | organisation | |
o1365 | s77 | Southern Response Earthquake Services Limited | Public Finance Act Schedule 4a companies | organisation | |
o1680 | o922 | Passports office | Public Service | organisation | |
o1935 | s14 | Governor-General | Public Sector | organisation | |
o1958 | s0 | Banking Ombudsman Scheme | organisation | ||
o2264 | s83 | Airways | State-owned enterprises | organisation | |
o2438 | o941 | Senior Services | Public Service | organisation | |
o2450 | s83 | MetService | State-owned enterprises | organisation | |
o2873 | s83 | Landcorp | State-owned enterprises | organisation | |
o3518 | s83 | New Zealand Post Limited | State-owned enterprises | organisation | |
o4503 | s83 | Animal Control Products Limited | State-owned enterprises | organisation | |
o4730 | s101 | Masterton District Council | District Council | organisation | |
o4748 | s83 | AsureQuality Limited | State-owned enterprises | organisation | |
o5285 | s83 | Solid Energy New Zealand Limited | State-owned enterprises | organisation | |
o5441 | s83 | KiwiRail Holdings Limited | State-owned enterprises | organisation | |
o5459 | s86 | Genesis Energy Limited | Mixed ownership model companies | organisation | |
o5516 | s86 | Meridian Energy Limited | Mixed ownership model companies | organisation | |
o5537 | s83 | Quotable Value Limited | State-owned enterprises | organisation | |
o5573 | s83 | Transpower | State-owned enterprises | organisation | |
o5753 | s83 | Kordia Group Limited | State-owned enterprises | organisation | |
o5843 | s0 | Telecommunication Dispute Resolution | organisation | ||
o6560 | s0 | Homecare Medical | organisation | ||
o6734 | s0 | Advertising Standards Authority | organisation | ||
o6749 | s20 | WorkSafe New Zealand | Crown agents | organisation | |
o6755 | s0 | Plumbers, Gasfitters and Drainlayers Board | organisation | ||
o6770 | s0 | AA New Zealand | organisation | ||
o6788 | o1237 | Office of the Auditor-General | Offices of Parliament | organisation | |
o6797 | s0 | Generosity NZ | organisation | ||
o6803 | s83 | Electricity Corporation of New Zealand | State-owned enterprises | organisation | |
o6883 | s14 | Toi Te Ora - Public Health Service | Public Sector | organisation | |
o6886 | o922 | Charities Services | Public Service | organisation | |
o6890 | o932 | Immigration Advisers Authority | Public Sector | organisation | |
o6892 | o932 | Building Practitioners Board | Public Sector | organisation | |
o7015 | s17 | Defence Employer Support Council | Statutory entities | organisation | |
o917 | s5 | Crown Law Office | Public Service | organisation | |
o920 | s5 | Department of Conservation | Public Service | organisation | |
o921 | s5 | Department of Corrections | Public Service | organisation | |
o922 | s5 | Department of Internal Affairs | Public Service | organisation | |
o923 | s5 | Department of the Prime Minister and Cabinet | Public Service | organisation | |
o924 | s5 | Education Review Office | Public Service | organisation | |
o925 | s5 | Government Communications Security Bureau | Public Service | organisation | |
o926 | s5 | Inland Revenue Department | Public Service | organisation | |
o927 | s5 | Land Information New Zealand | Public Service | organisation | |
o928 | s5 | Ministry for Culture and Heritage | Public Service | organisation | |
o929 | s5 | Ministry for Primary Industries | Public Service | organisation | |
o930 | s5 | Ministry for the Environment | Public Service | organisation | |
o932 | s5 | Ministry of Business, Innovation and Employment | Public Service | organisation | |
o933 | s5 | Ministry of Defence | Public Service | organisation | |
o934 | s5 | Ministry of Education | Public Service | organisation | |
o935 | s5 | Ministry of Foreign Affairs and Trade | Public Service | organisation | |
o937 | s5 | Ministry of Health | Public Service | organisation | |
o938 | s5 | Ministry of Justice | Public Service | organisation | |
o939 | s5 | Ministry of Māori Development | Public Service | organisation | |
o940 | s5 | Ministry for Pacific Peoples | Public Service | organisation | |
o941 | s5 | Ministry of Social Development | Public Service | organisation | |
o943 | s5 | Ministry of Transport | Public Service | organisation | |
o944 | s5 | Ministry for Women | Public Service | organisation | |
o946 | s5 | New Zealand Customs Service | Public Service | organisation | |
o947 | s5 | Serious Fraud Office | Public Service | organisation | |
o948 | s5 | State Services Commission | Public Service | organisation | |
o949 | s5 | Statistics New Zealand | Public Service | organisation | |
o950 | s5 | The Treasury | Public Service | organisation | |
o953 | o1006 | Alexander Turnbull Library | Public Service | organisation | |
o954 | o922 | Archives New Zealand | organisation | ||
o955 | o1237 | Audit New Zealand | Offices of Parliament | organisation | |
o956 | o1084 | Aviation Security Service | Crown agents | organisation | |
o958 | o941 | Child, Youth and Family | Public Service | organisation | |
o959 | s0 | Christchurch Central Development Unit | organisation | ||
o960 | o932 | Companies Office | Public Service | organisation | |
o961 | s5 | Court of Appeal | Public Service | organisation | |
o963 | s5 | Disputes Tribunal | Public Service | organisation | |
o964 | s5 | District Courts | Public Service | organisation | |
o966 | o932 | Electrical Workers Registration Board | Public Service | organisation | |
o967 | s5 | Employment Court | Public Service | organisation | |
o968 | s5 | Employment Relations Authority | Public Service | organisation | |
o969 | o6749 | Energy Safety | Crown agents | organisation | |
o970 | s5 | Environment Court | Public Service | organisation | |
o971 | o941 | Community Investment | Public Service | organisation | |
o973 | s0 | Food Standards Australia New Zealand | organisation | ||
o974 | s14 | Gambling Commission | Public Sector | organisation | |
o977 | o6560 | Healthline | organisation | ||
o978 | s5 | Heartland Services | Public Service | organisation | |
o979 | s5 | High Court | Public Service | organisation | |
o980 | s5 | Immigration and Protection Tribunal | Public Service | organisation | |
o981 | o932 | Immigration New Zealand | Public Service | organisation | |
o983 | o932 | Insolvency and Trustee Service | Public Service | organisation | |
o984 | o932 | Intellectual Property Office of New Zealand | Public Service | organisation | |
o985 | o1149 | International Accreditation New Zealand | Autonomous crown entities | organisation | |
o988 | s5 | Legal Aid Tribunal | Public Service | organisation | |
o989 | s14 | Legislation Advisory Committee | Public Sector | organisation | |
o990 | s14 | Local Government Commission | Public Sector | organisation | |
o991 | s5 | Māori Land Court | Public Service | organisation | |
o9915 | o932 | Tenancy Services | Public Service | organisation | |
o992 | o939 | Māori Television | Public Sector | organisation | |
o993 | o939 | Te Tumu Paeroa | Other (bodies corporate) | organisation | |
o995 | o932 | Trading Standards | Public Service | organisation | |
o996 | o932 | Resolution Services | Public Service | organisation | |
o997 | o937 | Medsafe | Public Service | organisation | |
o998 | o923 | Ministry of Civil Defence and Emergency Management | Public Service | organisation | |
o999 | o932 | Consumer Protection | Public Service | organisation | |
s0 | s14 | Unknown (to Chris) | Unknown (to Chris) | sector | |
s1 | s14 | State Sector | State Sector | sector | |
s101 | s95 | District Council | District Council | sector | |
s104 | s20 | District Health Boards | District Health Boards | sector | |
s11 | s2 | Crown entities | Crown entities | sector | |
s110 | s1 | State Sector organisations outside of State Services | State Sector organisations outside of State Services | sector | |
s14 | Public Sector | Public Sector | sector | ||
s17 | s11 | Statutory entities | Statutory entities | sector | |
s2 | s1 | State Services | State Services | sector | |
s20 | s17 | Crown agents | Crown agents | sector | |
s23 | s17 | Autonomous crown entities | Autonomous crown entities | sector | |
s26 | s17 | Independent crown entities | Independent crown entities | sector | |
s29 | s11 | Crown entity companies | Crown entity companies | sector | |
s32 | s29 | Crown Research Institutes | Crown Research Institutes | sector | |
s35 | s29 | Other companies | Other companies | sector | |
s38 | s29 | Crown entity subsidiaries | Crown entity subsidiaries | sector | |
s41 | s11 | School boards of trustees | School boards of trustees | sector | |
s44 | s110 | Tertiary education institutions | Tertiary education institutions | sector | |
s47 | s44 | Universities | Universities | sector | |
s5 | s2 | Public Service | Public Service | sector | |
s50 | s44 | Polytechnics/Institutes of technology | Polytechnics/Institutes of technology | sector | |
s53 | s44 | Wānanga | Wānanga | sector | |
s56 | s2 | Public Finance Act Schedule 4 organisations | Public Finance Act Schedule 4 organisations | sector | |
s59 | s56 | Fish and game councils | Fish and game councils | sector | |
s62 | s89 | Regional | Regional | sector | |
s65 | s56 | Reserves boards | Reserves boards | sector | |
s68 | s56 | Trusts | Trusts | sector | |
s71 | s56 | Other (bodies corporate) | Other (bodies corporate) | sector | |
s74 | s56 | Other (unincorporated) | Other (unincorporated) | sector | |
s77 | s2 | Public Finance Act Schedule 4a companies | Public Finance Act Schedule 4a companies | sector | |
s8 | s2 | Non-Public Service departments | Non-Public Service departments | sector | |
s80 | s110 | Offices of Parliament | Offices of Parliament | sector | |
s83 | s2 | State-owned enterprises | State-owned enterprises | sector | |
s86 | s110 | Mixed ownership model companies | Mixed ownership model companies | sector | |
s89 | s14 | Local Authority | Local Authority | sector | |
s92 | s62 | Regional Council | Regional Council | sector | |
s95 | s89 | Territorial Authority | Territorial Authority | sector | |
s98 | s95 | City Council | City Council | sector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment