District:
{{ districtName }}
{{
loadDistrictMap({div: 'district-map', bbs: selectOptions.filter(function(e){return e.id == App.district_id })[0].bbs_id, self: this })
}}
KEY
Upazila
Metro Thana
District capital
Police Thanas
2
# of justice system institutions operating
NGOs
Chowki Court
Village Court
District Demographics &
Justice Services
Area in sq.km.
{{ d3.format(',')( (+home.district.meta.area).toFixed(1) ) }}
Population
{{ d3.format(',')( home.district.meta.population ) }}
No. of Upazilas
{{ d3.format(',')( home.data.upazilas.length ) }}
No. of Police Thanas
{{ d3.format(',')( home.data.thana ) }}
No. of Village Courts
{{ home.data.village_courts }}
No. of Upazila
{{ d3.format(',')( home.data.ngo_upazilas ) }}
with NGO legal services
{{ homeMapUpazila ? homeMapUpazila.name : home.district.name }}
Demographics
Area in sq.km.
{{ d3.format(',')( Math.round( homeMapUpazila.meta.area ) ) }}
Population
{{ d3.format(',')( homeMapUpazila.meta.population ) }}
Police
Thana Name
{{ thana.org == "HQ" ? "HQ" : thana.label }}
Total Vehicles
{{ thana.vehicles }}
Total Police
{{ d3.format(',')( thana.police_total ) }}
(including IOs)
(including IOs)
Total Investigating Officers (IOs)
{{ d3.format(',')( thana.investigators_total ) }}
Year building constructed
{{ thana.opened }}
% police in barracks/
{{ thana.barracks_share }}
accomodations
accomodations
LEGAL AID
District Legal Aid Office
{{ home.data.dlao_officer }}
Non-Governmental Organizations
{{ ngo }}
{{ ngo }}
Courts
{{
{
CJM: 'Chief Judicial Magistrate Court',
MCD: 'Mobile Court',
STC: 'Speedy Trial Court',
DSC: 'District Sessions Court',
NOS: 'Nari-O-Shishu Court',
SJC: 'Public Safety Court',
PST: 'Special Judge Court',
Chowki: 'Chowki Court'
}[ court ]
}}
No. of Village Courts
{{ homeMapUpazila.village_courts }}
No. of Chowki Courts
{{ homeMapUpazila.chowki }}
Prison
Prison Name
{{ prison.label }}
Number of vehicles
{{ prison.vehicles }}
Total staff
{{ prison['staff.total'] }}
Total health staff
{{ prison['staff.health'] }}
% staff in barracks
{{ d3.format('.0%')( prison['staff.barrack'] / prison['staff.total'] ) }}
% staff in rented
{{ d3.format('.0%')( prison['staff.rented'] / prison['staff.total'] ) }}
Number of male wards
{{ prison['wards.male'] }}
Number of female wards
{{ prison['wards.female'] ? prison['wards.female'] : 0 }}
Number of external toilets
{{ prison['toilets.outside'] }}
Prison capacity
{{ d3.format(',')( prison.capacity ) }}
Prisoners
{{ d3.format(',')( prison.prisoners ) }}
= {{ Math.round( data.crime.meta.tot_new_cases_filed / 200 ) }} cases
Drug crimes
Other crimes
Violent crimes
Property crimes
KEY
Crime Rate
District
National Average
{{
loadDotPlot({
div: 'police-key-box-dot-graph',
data: {
districtValue: 70,
natAvg: 50,
fill: '#d0af3d',
min: 0,
max: 100
}
})
}}
# of accused per
charge sheet filed
charge sheet filed
{{ txt('police.case processing.terms.case processing') }} {{ firs.labels[firs.prefix] }}
{{
loadFlow({
div: 'firs-case-flow',
total: {
value: (+firs.data.crime.meta[firs.prefix + 'under_investigation']),
label: 'POLICE INVESTIGATIONS (FIR) ',
color: '#607387'
},
in: {
pending: [
{
value: +firs.data.crime.meta[firs.prefix + 'prev_under_investigation_ac'],
label: 'Pending in from 2015',
color: 'gold',
}
],
nonpending: [
{
value: +firs.data.crime.meta[firs.prefix + 'new_cases_filed'],
label: 'New cases',
color: 'grey'
}
],
categoryLabel: 'New Investigations'
},
out: {
pending: [
{
value: +firs.data.crime.meta[firs.prefix + 'under_investigation_ac'],
label: 'Pending out to 2017',
color: 'gold'
}
],
nonpending: [
{
value: +firs.data.crime.meta[firs.prefix + 'charge_cases'],
label: 'Charges Framed',
color: 'green'
},
{
value: +firs.data.crime.meta[firs.prefix + 'final_report'],
label: 'Final reports',
color: 'red'
}
],
categoryLabel: 'Resolved Cases'
}
})
}}
RESOLVED CASES
{{
function(){
var total = (+firs.data.crime.meta[firs.prefix + 'convicted']) + (+firs.data.crime.meta[firs.prefix + 'discharge']),
convicted = total ? Math.round( +firs.data.crime.meta[firs.prefix + 'convicted'] / total * 100 ) : 0,
discharge = total ? Math.round( +firs.data.crime.meta[firs.prefix + 'discharge'] / total * 100 ) : 0;
var cfg = {
div: 'firs-police-bar-graph',
fat: {
value: discharge,
labelRight: 'Convicted (' + convicted + '%)',
labelLeft: 'Discharged (' + discharge + '%)',
background: '#D06A28',
foreground: '#E69C73'
}
};
loadBar( cfg );
}()
}}
Investigation
Completion Rate
Within 1 Year
Completion Rate
Within 1 Year
{{ firs.data.crime.meta[firs.prefix + 'icr'] }}
{{
function(){
var cfg = {
div: 'firs-kn-bar',
fat: {
value: +firs.data.crime.meta[firs.prefix + 'icr'].replace('%',''),
labelRight: '',
background: '#ccc',
foreground: '#000'
},
thin: {
value: +firs.data.national[firs.prefix + 'icr'].value.replace('%',''),
label: 'National',
background: '#ccc',
foreground: '#738c77'
}
};
loadBar( cfg );
}()
}}
# of Accused
per Case
{{ firs.data.crime.meta[firs.prefix + 'accused_per_case'] }}
National: {{ firs.data.national[firs.prefix + 'accused_per_case'].value }}
Crimes
per 100K People
({{ firs.labels[firs.prefix] }})
per 100K People
({{ firs.labels[firs.prefix] }})
{{ firs.data.crime.meta[firs.prefix + 'rate_per_100k'] }}
National: {{ firs.data.national[firs.prefix + 'rate_per_100k'].value }}
KEY
Resources and Infrastructure
Human
Resources
Resources Physical
Space
Resources
{{ loadLily({div: 'lily-preview', scoreLeft: 0, scoreMid: 0, scoreRight: 0 }) }}
MaterialResources Physical
Space
Each category scored on scale of 1-3 - size of leaf reflects the status
No data
{{
loadLily({
div: 'item-' + index + '-' + i,
scoreLeft: item.material,
scoreMid: item.human,
scoreRight: item.physical
})
}}
{{ item.org == "thana" ? item.label : "HQ" }}
{{ data.upazila[items[0].upazila_id].name }}
{{ ( lily.label ? lily.label : lily.name ) + " " + lily.org.toUpperCase() }} Details
{{
loadLily({
div: 'lily-details-lily',
scoreLeft: lily.material,
scoreMid: lily.human,
scoreRight: lily.physical
})
}}
CATEGORY: STATUS
Material Resources
{{ lily.material }}
Human Resources
{{ lily.human }}
Physical Resources
{{ lily.physical }}
Material Resources
Square Kilometers per Vehicle ({{ lily.sqkm_per_veh }})
Lower
Average
Higher
Human Resources
Police per 100,000 ({{ lily.police_per_100k }})
% Female ({{ lily.female_share }})
IO % of Total Police ({{ lily.police_io }})
Physical Space
Age of building ({{ lily.building_age }} years)
Police Thanas Summary
Population
{{ d3.format(',')( lily.org != "HQ" ? data.upazila[ lily.upazila_id ].population : data.district.meta.population ) }}
Total Sq. Km.
{{ d3.format(',')( Math.round( lily.org != "HQ" ? data.upazila[ lily.upazila_id ].area : data.district.meta.area ) ) }}
Total vehicles
{{ d3.format(',')( lily.vehicles ) }}
Total Police
{{ d3.format(',')( lily.police_total ) }}
(including IOs)
(including IOs)
Total Investigating Officers (IOs)
{{ d3.format(',')( lily.investigators_total ) }}
Year building constructed
{{ lily.opened }}
% police in barracks/
{{ lily.barracks_share }}
accomodations
accomodations
% Female
{{ lily.female_share }}
District: {{ data.district.meta.female_share }}
% Investigating
Officers of Total Police
Officers of Total Police
{{ lily.investigators_share }}
District: {{ data.district.meta.investigators_share }}
Number of Arrests
per Police
per Police
{{ lily.arrests_per_police }}
District: {{ data.district.meta.arrests_per_police }}
{{ $nextTick( populateLegalAidCaseProcessing ) }}
Acceptance Rate
QUANTITY
=
Acceptance Rate
Key
> 20,000
5K - 20K
1K - 5K
< 1K
District share of National
mediation target
mediation target
Litigation
# of cases filed at court
Mediation
# of cases mediated
Money paid in settlement
Legal Advice & Assistance
# of persons provided legal Advice/Assistance
# of persons assisted at police station
Legal awareness programmes
Victim Support
# of persons provided medical support
# of persons provided councelling
# of persons assisted w/ medical/rehab support
Percent of Total DLAO Applications Accepted
Estimated DLAO Eligible Arrestees to
DLAO Criminal Cases
DLAO Criminal Cases
Ratio of New Criminal Cases
to Disposed Criminal Cases
to Disposed Criminal Cases
{{
loadLily({
div: 'legal-aid-lily',
scoreLeft: legal_aid.lily.physical,
scoreMid: legal_aid.lily.human,
scoreRight: legal_aid.lily.material
})
}}
CATEGORY: STATUS
Condition
{{ legal_aid.lily.physical }}
Human Resources
{{ legal_aid.lily.human }}
Material Resources
{{ legal_aid.lily.material }}
KEY
Resources and Infrastructure
Human
Resources
Resources
Resources
{{
loadLily({
div: 'legal-aid-lily-preview',
scoreLeft: 0,
scoreMid: 0,
scoreRight: 0
})
}}
Conditions
MaterialResources
Each category scored on scale of 1-3 - size of leaf reflects the status
Conditions
DLAO Office ({{ legal_aid.lily.office }})
Lower
Average
Higher
Confidential Client Space ({{ legal_aid.lily.confidential_space }})
Human Resources
DLAO Officers ({{ legal_aid.lily.officers }})
Support Staff ({{ legal_aid.lily.support }})
Active DLAO Panel Lawyers ({{ legal_aid.lily.active_panel_lawyers }})
% Female DLAO Panel Lawyers ({{ legal_aid.lily.female_share }})
Material Resources
Vehicles ({{ legal_aid.lily.vehicles }})
Computers ({{ legal_aid.lily.computers }})
Key Numbers
Total Criminal + Civil Cases
per DLAO Panel Lawyer
per DLAO Panel Lawyer
{{ legal_aid.lily.total_cases_per_lawyer }}
Criminal Cases per
Bar Member Lawyer
Bar Member Lawyer
{{ legal_aid.lily.criminal_cases_per_bar_lawyer }}
% Female DLAO
Panel Lawyers
Panel Lawyers
{{ legal_aid.lily.female_share }}
{{
loadLily({
div: 'prosecutor-lily-' + id,
scoreLeft: lily.material,
scoreMid: lily.human,
scoreRight: lily.physical
})
}}
CATEGORY: STATUS
Material Resources
n/a
Human Resources
{{ lily.human }}
Physical Space
{{ lily.physical }}
KEY
Resources and Infrastructure
Human
Resources
Resources Physical
Space
Resources
{{
loadLily({
div: 'prosecutor-lily-preview-' + id,
scoreLeft: 0,
scoreMid: 0,
scoreRight: 0
})
}}
MaterialResources Physical
Space
Each category scored on scale of 1-3 - size of leaf reflects the status
Material Resources
NO DATA
Lower
Average
Higher
Human Resources
Prosecutors ({{ lily.prosecutors }})
% Female ({{ lily.female_share }})
Physical Space
Office ({{ lily.office }})
Witness Waiting Room in Court ({{ lily.waiting_room }})
{{
loadSunburst({
div: ckey + '-circle-999',
data: { new: {value: 60, color: '#d3d3d3', label: '' }, old: {value:40, color: '#666666', label: '' } },
fields: [
'new',
'old'
],
total: {value: 100, color: '#f3f3f3' },
label: [""],
fixed_colors: true,
tooltip: false
})
}}
{{ key }}
{{ loadSunburst({ div: ckey + '-circle-' + index, data: { new: {value: c.new ? c.new : c.total, color: '#748e79', label: 'New' }, old: {value: c.old, color: '#d0af3d', label: 'Pending' } }, fields: [ 'new', 'old' ], total: {value: c.total, color: '#f3f3f3' }, label: ["CASES"], fixed_colors: true }) }}
{{
courtCaseFlow()
}}
Non-Guilty Case Outcomes
{{ Math.round( +court.details['out.disposed'] / +court.details.out * 100 ) }}%
{{
function(){
var total = (+court.details['out.conv']) + (+court.details['out.disposed']) + ( court.details['out.trans'] ? +court.details['out.trans'] : 0),
resolved = Math.round( +court.details['out.disposed'] / total * 100 );
var cfg = {
div: 'courts-bar-graph',
fat: {
value: resolved,
labelRight: 'Resolved Cases',
background: '#bcbdc0',
foreground: '#748e79' //'#231f20'
}
};
if( courts.graphs_national && courts.graphs_national[ court.court ] && courts.graphs_national[ court.court ][ 'out.conv' ] && courts.graphs_national[ court.court ][ 'out.disposed' ] ) {
var nat = courts.graphs_national[ court.court ],
nat_total = (+nat['out.conv']) + (+nat['out.disposed']) + ( nat['out.trans'] ? +nat['out.trans'] : 0),
nat_resolved = Math.round( +nat['out.disposed'] / nat_total * 100 );
cfg.thin = {
value: nat_resolved,
label: 'National',
background: '#bcbdc0',
foreground: '#231f20' // '#748e79'
};
}
loadBar( cfg );
}()
}}
Court Cases
> 5 Years Old
Court Cases
> 10 Years Old
> 5 Years Old
{{ caclCourtPending(5) }}
{{
loadCumulative({
div: 'court-kn-stat-chart',
data: function(d){
var keys = Object.keys( d )
list = Object.values( d );
list = list.map(function(v){ return +v;});
return list.filter(function(v,i){ return keys[i] >= 1984 && v > 0; });
}(court.history.pending),
labels: function(d){
var keys = Object.keys( d ),
length = keys.length;
// find minimal key
var minYear = 2016;
for( var i = 0; i < keys.length; i++ ) {
if( d[ keys[i] ] > 0 && minYear > keys[i] ) {
minYear = keys[i];
}
}
return [ minYear, keys[length-1] ];
}(court.history.pending),
dottedLines: [5,10]
})
}}
Court Cases
> 10 Years Old
{{ caclCourtPending(10) }}
Change in
Pending Court Cases
Pending Court Cases
{{ calcCourtPendingChange() }}%
{{
courtLoadSlopeGraph()
}}
KEY
Resources and Infrastructure
Human
Resources
Environmental
Conditions Physical
Space
Resources
Environmental
Conditions Physical
Space
Each category scored on scale of 1-3 - size of leaf reflects the status.
{{
loadLily({
div: 'cjm-lily-details',
scoreLeft: courts.list[courts_district].cjm.environmental,
scoreMid: courts.list[courts_district].cjm.human,
scoreRight: courts.list[courts_district].cjm.physical
})
}}
CATEGORY: STATUS
Material Resources
{{ courts.list[courts_district].cjm.environmental }}
Human Resources
{{ courts.list[courts_district].cjm.human }}
Physical Resources
{{ courts.list[courts_district].cjm.physical }}
Environmental Conditions
Adequate access to public toilets ({{ courts.list[courts_district].cjm.toilets }})
Lower
Average
Higher
AC/Fans per court room ({{ courts.list[courts_district].cjm.fans }})
Human Resources
Cases per Magistrate ({{ d3.format(',')(courts.list[courts_district].cjm.cases) }})
% Female Magistrates ({{ courts.list[courts_district].cjm.female_share }})
Administrative Staff per Magistrate ({{ courts.list[courts_district].cjm.admin_staff }})
Magistrates per 100K ({{ courts.list[courts_district].cjm.magistrates_per_100k }})
Physical Space
Court Rooms Per Magistrates ({{ courts.list[courts_district].cjm.court_rooms_per_magistrate }})
Adequate evidence storage (malkhana) ({{ courts.list[courts_district].cjm.evidence_storage }})
Male witness waiting rooms ({{ courts.list[courts_district].cjm.waiting_rooms_male }})
Female witness waiting rooms ({{ courts.list[courts_district].cjm.waiting_rooms_female }})
Court rooms with Stenographer space ({{ courts.list[courts_district].cjm.with_stenograph }})
Summary Data
Number of magistrates
{{ d3.format(',')( courts.list[courts_district].cjm.magistrates ) }}
Number of administrative staff
{{ d3.format(',')( courts.list[courts_district].cjm.staff_admin ) }}
Number of court rooms
{{ d3.format(',')( courts.list[courts_district].cjm.court_rooms ) }}
Total cases resolved
{{ d3.format(',')( courts.list[courts_district].cjm.out ) }}
Trial Cases/
Court Room/ Day
Court Room/ Day
{{ courts.list[courts_district].cjm.cases_per_room_per_day }}
% Female Magistrates
{{ courts.list[courts_district].cjm.female_magistrate_share }}
{{
loadBar({
div: 'court-kn-mag-cjm',
fat: {
value: +courts.list[courts_district].cjm.female_magistrate_share.replace('%',''),
labelRight: '',
background: '#ccc',
foreground: '#000'
},
thin: {
value: +courts.graphs_national.CJM.female_magistrate_share.replace('%',''),
label: 'National',
background: '#ccc',
foreground: '#738c77'
}
})
}}
Adequate Access
to Public Toilets
to Public Toilets
{{ courts.list[courts_district].cjm.toilets }}
{{
loadLily({
div: 'dsc-lily-details',
scoreLeft: courts.list[courts_district].dsc.environmental,
scoreMid: courts.list[courts_district].dsc.human,
scoreRight: courts.list[courts_district].dsc.physical
})
}}
CATEGORY: STATUS
Material Resources
{{ courts.list[courts_district].dsc.environmental }}
Human Resources
{{ courts.list[courts_district].dsc.human }}
Physical Resources
{{ courts.list[courts_district].dsc.physical }}
Environmental Conditions
Adequate access to public toilets ({{ courts.list[courts_district].dsc.toilets }})
Lower
Average
Higher
AC/Fans per court room ({{ courts.list[courts_district].dsc.fans }})
Human Resources
Cases per Judge ({{ d3.format(',')(courts.list[courts_district].dsc.cases) }})
% Female Judges ({{ courts.list[courts_district].dsc.female_share }})
Administrative Staff per Judge ({{ courts.list[courts_district].dsc.admin_staff }})
Judges per 100K ({{ courts.list[courts_district].dsc.magistrates_per_100k }})
Physical Space
Court Rooms Per Judges ({{ courts.list[courts_district].dsc.court_rooms_per_magistrate }})
Adequate evidence storage (malkhana) ({{ courts.list[courts_district].dsc.evidence_storage }})
Male witness waiting rooms ({{ courts.list[courts_district].dsc.waiting_rooms_male }})
Female witness waiting rooms ({{ courts.list[courts_district].dsc.waiting_rooms_female }})
Court rooms with Stenographer space ({{ courts.list[courts_district].dsc.with_stenograph }})
Summary Data
Number of judges
{{ d3.format(',')( courts.list[courts_district].dsc.magistrates ) }}
Number of administrative staff
{{ d3.format(',')( courts.list[courts_district].dsc.staff_admin ) }}
Number of court rooms
{{ d3.format(',')( courts.list[courts_district].dsc.court_rooms ) }}
Total cases resolved
{{ d3.format(',')( courts.list[courts_district].dsc.out ) }}
Trial Cases/
Court Room/ Day
Court Room/ Day
{{ courts.list[courts_district].dsc.cases_per_room_per_day }}
% Female Judges
{{ courts.list[courts_district].dsc.female_magistrate_share }}
{{
loadBar({
div: 'court-kn-mag-dsc',
fat: {
value: +courts.list[courts_district].dsc.female_magistrate_share.replace('%',''),
labelRight: '',
background: '#ccc',
foreground: '#000'
},
thin: {
value: +courts.graphs_national.DSC.female_magistrate_share.replace('%',''),
label: 'National',
background: '#ccc',
foreground: '#738c77'
}
})
}}
Adequate Access
to Public Toilets
to Public Toilets
{{ courts.list[courts_district].dsc.toilets }}
Estimated Probation
Eligible Jailees
Eligible Jailees
{{ d3.format(',')( lily.jailees ) }}
Probation Cases
Issued by Court
Issued by Court
{{ d3.format(',')( lily.cases_issued_by_court ) }}
Probation Cases
Received by Probation
Received by Probation
{{ d3.format(',')( lily.cases_received_by_probation ) }}
{{
loadLily({
div: 'probation-lily-' + id,
scoreLeft: lily.material,
scoreMid: lily.human,
scoreRight: lily.physical
})
}}
CATEGORY: STATUS
Material Resources
{{ lily.material }}
Human Resources
{{ lily.human }}
Physical Space
{{ lily.physical }}
KEY
Resources and Infrastructure
Human
Resources
Resources Physical
Space
Resources
{{
loadLily({
div: 'probation-lily-preview-' + id,
scoreLeft: 0,
scoreMid: 0,
scoreRight: 0
})
}}
MaterialResources Physical
Space
Each category scored on scale of 1-3 - size of leaf reflects the status
Material Resources
Motor Bike ({{ lily.bike }})
Lower
Average
Higher
Phone ({{ lily.phone }})
Secure Filing Cabinets ({{ lily.cabinets }})
Human Resources
Probation Officers ({{ lily.officers }})
Support Staff ({{ lily.support }})
Physical Space
Office ({{ lily.office }})
Office in Court ({{ lily.office_in_court }})
{{
loadFlow({
div: 'prison-case-flow-' + prison.id,
total: {
value: (+prison.stats.admits),
label: 'PRISON ADMISSIONS',
color: '#bd370d'
},
in: {
pending: [
{
value: +prison.stats['admits.convicted'],
label: 'Prison Admissions (Sentenced)',
color: 'gold',
}
],
nonpending: [
{
value: +prison.stats['admits.under_trial'],
label: '\xa0\xa0\xa0 Prison Admission (Under\xa0Trial)',
color: 'purple'
}
],
categoryLabel: 'New Admissions'
},
out: {
pending: [
{
value: +prison.stats['released.completion'],
label: 'Prison Releases by Completion\xa0of\xa0Sentence', // \xa0 is non-breaking space
color: 'gold'
}
],
nonpending: [
{
value: +prison.stats['released.bail'],
label: 'Prison Releases by Bail',
color: 'green'
}
],
categoryLabel: 'Resolved Cases'
}
})
}}
Men and Women
Prisoners by Status
{{
loadSunburstMulti({
div: 'prison-sunburst-a-' + prison.id,
colors: [['#58585a','#a7a9ac'],['#edf1ed','#e79c74']],
data: {
name: "Parent",
label: 'POPULATION',
children: [
{
label: "Under Trial",
children: [
{ label: "Male", value: prison.stats['under_trial.male'] },
{ label: "Female", value: prison.stats['under_trial.female'] },
]
},
{
label: "Convicted",
children: [
{ label: "Male", value: prison.stats['convicted.male'] },
{ label: "Female", value: prison.stats['convicted.female'] },
]
}
]
}
})
}}
Men and Women
Prisoners by Age
{{
loadSunburstMulti({
div: 'prison-sunburst-b-' + prison.id,
colors: [['#3a3148','#534766','#7f7195','#a398b6','#c9b7d5'],['#edf1ed','#e79c74']],
data: {
name: "Parent",
label: 'POPULATION',
children: [
{
label: "< 18",
children: [
{ label: "Male", value: prison.stats['age.under18.male'] },
{ label: "Female", value: prison.stats['age.under18.female'] },
]
},
{
label: "18-24",
children: [
{ label: "Male", value: prison.stats['age.18_24.male'] },
{ label: "Female", value: prison.stats['age.18_24.female'] },
]
},
{
label: "25-34",
children: [
{ label: "Male", value: prison.stats['age.25_34.male'] },
{ label: "Female", value: prison.stats['age.25_34.female'] },
]
},
{
label: "35-44",
children: [
{ label: "Male", value: prison.stats['age.35_44.male'] },
{ label: "Female", value: prison.stats['age.35_44.female'] },
]
},
{
label: "45-54",
children: [
{ label: "Male", value: prison.stats['age.45_54.male'] },
{ label: "Female", value: prison.stats['age.45_54.female'] },
]
},
{
label: "> 55",
children: [
{ label: "Male", value: prison.stats['age.over55.male'] },
{ label: "Female", value: prison.stats['age.over55.female'] },
]
}
]
}
})
}}
Prisoners
by Status and Crime
{{
loadSunburstMulti({
div: 'prison-sunburst-c-' + prison.id,
colors: [
['#58585a','#a7a9ac'],
[
'#d0af3d', //'#bd3722',
'#bd3722', '#de6956', '#e4897a', '#eca69b', '#f5c5be', '#fde2de', //'#d0af3d', '#d7bc5c', '#ddc779', '#e4d396', '#ebdeb3', '#f2ebcf',
'#748e79', '#899f8d', '#9eb0a1', '#b3c1b5', '#c7d2c9', '#dce2dd'
]
],
data: {
name: "Parent",
label: 'POPULATION',
children: [
{
label: "Under Trial",
children: [
{ label: "Drug", value: prison.stats['under_trial.drug'] },
{ label: "Murder", value: prison.stats['under_trial.murder'] },
{ label: "Rape", value: prison.stats['under_trial.rape'] },
{ label: "N-O-S", value: prison.stats['under_trial.court.nos'] },
{ label: "Kidnapping", value: prison.stats['under_trial.kidn'] },
{ label: "Explosives", value: prison.stats['under_trial.explosives'] },
{ label: "Fighting", value: prison.stats['under_trial.fight'] },
{ label: "Robbery", value: prison.stats['under_trial.robbery'] },
{ label: "Theft", value: prison.stats['under_trial.theft'] },
{ label: "Smuggling", value: prison.stats['under_trial.smugg'] },
{ label: "Sabotage", value: prison.stats['under_trial.sabotage'] },
{ label: "Petty", value: prison.stats['under_trial.petty'] },
{ label: "Other", value: prison.stats['under_trial.other'] },
]
},
{
label: "Convicted",
children: [
{ label: "Drug", value: prison.stats['convicted.drug'] },
{ label: "Murder", value: prison.stats['convicted.murder'] },
{ label: "Rape", value: prison.stats['convicted.rape'] },
{ label: "N-O-S", value: prison.stats['convicted.court.nos'] },
{ label: "Kidnapping", value: prison.stats['convicted.kidn'] },
{ label: "Explosives", value: prison.stats['convicted.explosives'] },
{ label: "Fighting", value: prison.stats['convicted.fight'] },
{ label: "Robbery", value: prison.stats['convicted.robbery'] },
{ label: "Theft", value: prison.stats['convicted.theft'] },
{ label: "Smuggling", value: prison.stats['convicted.smugg'] },
{ label: "Sabotage", value: prison.stats['convicted.sabotage'] },
{ label: "Petty", value: prison.stats['convicted.petty'] },
{ label: "Other", value: prison.stats['convicted.other'] },
]
},
]
}
})
}}
Prisoners by Status and Time
Spent in Prison
{{
loadSunburstMulti({
div: 'prison-sunburst-d-' + prison.id,
colors: [['#58585a','#a7a9ac'],['#151561']], //['#e79c74']], //,'#feebb7','#d1d2d4','#748e79','#d1d2d4','#d1d2d4','#d1d2d4','#d1d2d4','#d1d2d4','#d1d2d4','#d1d2d4','#d1d2d4','#fad193']],
data: {
name: "Parent",
label: 'POPULATION',
children: [
{
label: "Under Trial",
children: [
{ label: "1-6 months", value: prison.stats['in_prison.under_trial.1_6m'] },
{ label: "7-11 months", value: prison.stats['in_prison.under_trial.7_11m'] },
{ label: "1-3 years", value: prison.stats['in_prison.under_trial.1_3'] },
{ label: "4-5 years", value: prison.stats['in_prison.under_trial.4_5'] },
{ label: "6-10 years", value: prison.stats['in_prison.under_trial.6_10'] },
{ label: "11-20 years", value: prison.stats['in_prison.under_trial.11_20'] },
{ label: "over 20 years", value: prison.stats['in_prison.under_trial.over20'] }
]
},
{
label: "Convicted",
children: [
{ label: "1-6 months", value: prison.stats['in_prison.convicted.1_6m'] },
{ label: "7-11 months", value: prison.stats['in_prison.convicted.7_11m'] },
{ label: "1-3 years", value: prison.stats['in_prison.convicted.1_3'] },
{ label: "4-5 years", value: prison.stats['in_prison.convicted.4_5'] },
{ label: "6-10 years", value: prison.stats['in_prison.convicted.6_10'] },
{ label: "11-20 years", value: prison.stats['in_prison.convicted.11_20'] },
{ label: "over 20 years", value: prison.stats['in_prison.convicted.over20'] }
]
},
]
}
})
}}
# Admitted from
Mobile Court
Mobile Court
{{ d3.format(',')( prison.stats['prisoners.court.mobile'] ) }}
% Under Trial
Drug Cases
Drug Cases
{{ Math.round( (+prison.stats['under_trial.drug']) / (+prison.stats['under_trial.offences']) * 100 ) }}%
{{
loadBar({
div: 'prison-bar-chart-a-' + prison.id,
fat: {
value: Math.round( (+prison.stats['under_trial.drug']) / (+prison.stats['under_trial.offences']) * 100 ),
background: '#ccc',
foreground: '#738c77'
},
thin: {
value: Math.round( (+prisons.national['under_trial.drug']) / (+prisons.national['under_trial']) * 100 ),
background: '#ccc',
foreground: '#000',
color: '#ccc',
label: "National"
}
})
}}
% Under Trial
< 6 months
< 6 months
{{ Math.round( (+prison.stats['in_prison.under_trial.1_6m']) / (+prison.stats['under_trial.offences']) * 100 ) }}%
{{
loadBar({
div: 'prison-bar-chart-b-' + prison.id,
fat: {
value: Math.round( (+prison.stats['in_prison.under_trial.1_6m']) / (+prison.stats['under_trial.offences']) * 100 ),
background: '#ccc',
foreground: '#738c77'
},
thin: {
value: Math.round( (+prisons.national['under_trial.1_6m']) / (+prisons.national['under_trial']) * 100 ),
background: '#ccc',
foreground: '#000',
color: '#ccc',
label: "National"
}
})
}}
{{
loadLily({
div: 'prison-details-lily' + prison.id,
scoreLeft: prison.material,
scoreMid: prison.human,
scoreRight: prison.physical
})
}}
CATEGORY: STATUS
Material Resources
{{ prison.material }}
Human Resources
{{ prison.human }}
Physical Resources
{{ prison.physical }}
Material Resources
Ambulances ({{ prison.ambulances }})
Lower
Average
Higher
Outdoor Land Availability (acres) ({{ prison.outdoor }})
Human Resources
Prisoners per Health Staff
({{ d3.format(',')( Math.round( prison.prisoners_per_health ) ) }})
Social Welfare Officer ({{ prison.prisoners_per_social }})
Female % of Senior Staff ({{ prison.female_share }})
Conditions
Year of Construction ({{ prison.year }})
Male Prisoners per ward ({{ prison.prisoners_per_ward_male }})
Female Prisoners per ward ({{ prison.prisoners_per_ward_female }})
Prisoners per external toilet ({{ prison.prisoners_per_toilet }})
Prisoners % of Capacity ({{ prison.prisoners_share }})
Prisons Summary
Number of vehicles
{{ prison.stats.vehicles }}
Total staff
{{ prison.stats['staff.total'] }}
Total health staff
{{ prison.stats['staff.health'] }}
% staff in barracks
{{ d3.format('.0%')( prison.stats['staff.barrack'] / prison.stats['staff.total'] ) }}
% staff in rented
{{ d3.format('.0%')( prison.stats['staff.rented'] / prison.stats['staff.total'] ) }}
accomodations
accomodations
Number of male wards
{{ prison.stats['wards.male'] }}
Number of female wards
{{ prison.stats['wards.female'] }}
Number of external toilets
{{ prison.stats['toilets.outside'] }}
Prison capacity
{{ d3.format(',')( prison.stats.capacity ) }}
Occupancy
% of Capacity
% of Capacity
{{ prison.occupancy_share }}
{{
function(){
var occupancy = +prison.occupancy_share.replace('%','');
var cfg = {
div: 'prison-kn-bar',
fat: {
value: occupancy,
labelRight: occupancy > 100 ? 'Prison Population (' + prison.occupancy_share + ')' : '',
labelLeft: occupancy > 100 ? 'Prison Capacity' : 'Prison Population (' + prison.occupancy_share + ')',
background: '#ccc',
foreground: '#BC3A26'
}
};
loadBar( cfg );
}()
}}
Ratio of Health
staff to Prisoners
staff to Prisoners
1 : {{ d3.format(',')( Math.round( prison.prisoners_per_health ) ) }}
{{ prison.prisoners_per_health }}
Female % of
Senior Prison Staff
Senior Prison Staff
{{ /[\d\.\%]+/.test( prison.female_share ) ? prison.female_share : '∅' }}