Aspect 3: Millgate & Dunkirk Census Analysis
This aspect provides allows you to analyse the Millgate and Dunkirk (part of Aylsham) census data for 1861.
To view the data, step through it with the arrow buttons at the top of the panel. The single arrow will move you one record at a time. The double arrow will move you through 10 records at a time. The arrow with the vertical bar will move you to the beginning or the end of the database.
o sort the census data, use the drop-down menus to choose the field and order, then click on Do Sort.
To search the census data, use the drop-down menus and then click on Do Search. You can carry out further searches on your results by using the and option which will then become available. The and option will not search all the census data, just the set you selected in your previous search. The or option will add results from the full data set to your first search.
The Display Chart option will allow you to draw graphs. If you have not carried out a search, it will use the whole census data set. If you have carried out a search, it will graph the results of that search.
function getReq ()
{
if (window.XMLHttpRequest)
{
request = new XMLHttpRequest ();
}
else
{
request = new ActiveXObject ("MSXML2.XMLHTTP");
}
return request;
}
function checkReadyState (obj)
{
if (obj.readyState == 4)
{
if (obj.status == 200)
{
return true;
}
}
}
function makeRequestOccs ()
{
request = getReq ();
request.onreadystatechange = onResponseOccs;
request.open ("GET", "getcensusoccs.php?cen=Aylsham", true);
request.send (null);
}
var html;
function onResponseOccs ()
{
html = '
if (checkReadyState (request))
{
var data = request.responseText;
var inf = data.split ("^");
for (i = 0; i < inf.length; i++)
{
html += '';
}
}
html += '';
document.getElementById ('sparamctl').innerHTML = html;
}
function makeRequest (itm, srt, dir, sch)
{
request = getReq ();
request.onreadystatechange = onResponse;
request.open ("GET", "getcensus.php?cen=Aylsham&ref=" + itm + "&s=" + srt +
"&d=" + dir + "&sch=" + sch, true);
request.send (null);
}
function onResponse ()
{
if (checkReadyState (request))
{
var data = request.responseText;
var inf = data.split ("^");
for (i = 0; i < 20; i++)
if (i != 18)
{
if (inf [i].length == 0)
{
inf [i] = " ";
}
document.getElementById ('c' + i).innerHTML = inf [i];
if (i == 1)
{
document.getElementById ('n').value = inf [i];
}
}
}
}
function doItem (i)
{
var n = parseInt (document.getElementById ('n').value);
if (i == 0)
{
n = 1;
}
else
{
n += i;
}
if (n < 1)
{
n = 1;
}
runCensus (n);
}
function runCensus (n)
{
var s = document.getElementById ('sort').value;
var d = document.getElementById ('dir').value;
// Make up the search
document.getElementById ('sch0').innerHTML = numsch;
if (numsch == 0)
{
document.getElementById ('schand').innerHTML = '';
}
else
{
document.getElementById ('schand').innerHTML = '';
}
var sch = "";
for (i = 0; i < numsch; i++)
sch += searches [i];
makeRequest (n, s, d, sch);
}
var lastSet = 0;
function setType (t)
{
switch (t)
{
case 0 : // Strings
html = '';
break;
case 1 : // Numbers
html = '';
break;
case 5 : // Occupation
html = '';
break;
default :
html = '';
}
document.getElementById ('stypectl').innerHTML = html;
}
function setParam (t)
{
switch (t)
{
case 0 : // Strings
case 1 : // Numbers
html = '';
break;
case 2 : // Inhabited
html = '';
break;
case 3 : // Sex
html = '';
break;
case 4 : // Marital Condition
html = '';
break;
case 5 : // Occupation
makeRequestOccs ();
break;
}
if (t != 5)
{
document.getElementById ('sparamctl').innerHTML = html;
}
}
function setVals ()
{
var field = document.getElementById ('sfield').value;
var ft = parseInt (field.substring (0, 1));
if (ft != lastSet)
{
setType (ft);
setParam (ft);
lastSet = ft;
}
}
var searches = new Array;
var numsch = 0;
function doSearch ()
{
var smode = document.getElementById ('smode').value;
var field = document.getElementById ('sfield').value;
var stype = parseInt (document.getElementById ('stype').value);
var sparam = document.getElementById ('sparam').value;
var s = "";
if (numsch > 0)
{
s += " " + smode + " ";
}
var ft = parseInt (field.substring (0, 1));
var fld = field.substring (1);
switch (ft)
{
case 0 : // Normal strings
switch (stype)
{
case 0 :
s += fld + " LIKE '%25" + sparam + "%25'";
break;
case 1 :
s += fld + " NOT LIKE '%25" + sparam + "%25'";
break;
case 2 :
s += fld + " = '" + sparam + "'";
break;
case 3 :
s += fld + " <> '" + sparam + "'";
break;
case 6 :
s += "(" + fld + " IS NULL OR " + fld + " = '')";
break;
case 7 :
s += fld + " <> ''";
break;
case 8 :
s += fld + " LIKE '" + sparam + "%25'";
break;
}
break;
case 1 : // Numbers
case 2 : // Inhabited
case 3 : // Sex
case 4 : // Condition
switch (stype)
{
case 2 :
s += fld + " = " + sparam;
break;
case 3 :
s += fld + " <> " + sparam;
break;
case 4 :
s += fld + " > " + sparam;
break;
case 5 :
s += fld + " < " + sparam;
break;
}
break;
case 5 : // Occupation
switch (stype)
{
case 0 :
s += fld + " LIKE '%25," + sparam + ",%25'";
break;
case 1 :
s += fld + " NOT LIKE '%25," + sparam + ",%25'";
break;
case 6 :
s += "(" + fld + " IS NULL OR " + fld + " = '')";
break;
case 7 :
s += fld + " <> ''";
break;
}
break;
}
searches [numsch] = s;
numsch++;
var n = parseInt (document.getElementById ('n').value);
runCensus (n);
}
function undoSearch (us)
{
var n = parseInt (document.getElementById ('n').value);
if (numsch > 0)
{
numsch = (us == 0 ? 0 : numsch - 1);
}
runCensus (n);
}
var lastSetCh = -1;
var qNum = 12;
function setChType (t, fld)
{
switch (t.substring (0, 1))
{
case '0' : // Pie/Bar Chart
html = '' +
' Qty to show ';
document.getElementById ('chtitle').value = "Chart of '" + fld + "'";
break;
case '1' : // Histogram
var range = parseInt (t.substring (1, 2));
var p1 = "0";
var p2 = "120";
var p3 = "6";
switch (range)
{
case 2 :
p2 = "90";
p3 = "9";
break;
case 3 :
p1 = "1";
p2 = "10";
p3 = "9";
break;
}
html = 'Range: ' +
'to in ' +
' steps.' +
'';
document.getElementById ('chtitle').value = "Histogram of '" + fld + "'";
break;
}
document.getElementById ('chtypectl').innerHTML = html;
}
function setChVals ()
{
var chf = document.getElementById ('chfield');
var field = chf.value;
var si = chf.selectedIndex;
var opt = chf.options [si].text;
setChType (field, opt);
}
function drawChart ()
{
// Collate all the current info and pass it off to the chart popup
var chtype = document.getElementById ('charttype').value;
var dat = "Aylsham^" + document.getElementById ('chfield').value + "^" +
document.getElementById ('chtitle').value + "^" +
chtype + "^";
if (chtype == "H") // Histogram
{
dat += document.getElementById ('cfrom').value + "^" +
document.getElementById ('cto').value + "^" +
document.getElementById ('steps').value + "^";
}
else
{
qNum = document.getElementById ('qnum').value;
dat += qNum + "^";
}
for (i = 0; i < numsch; i++)
{
dat += searches [i];
}
window.open ('popchart.php?dat=' + dat, 'PopChart',
'toolbar=no,menubar=no,scrollbars=yes,width=520,height=520,resizable=yes,status=yes');
}
Record of |
| ||||
Parish | |||||
Schedule / Address | / | ||||
Inhabited | |||||
Name | |||||
Details | / id="c8"> / / | ||||
Size | Family= House=id="c12"> | ||||
Occupation | |||||
Birth Town | |||||
Birth County | |||||
Birth Country | |||||
Notes | |||||
Sort by: | |||||
Search Current searches = 0 | |||||
Display Chart of:
|
To analyse the data, it is important to understand the data structure. It may be helpful to see the data laid out as a table - see the page linked to Activity Sheet 2.
The first five lines carry the data as on the original census forms from 1861, though where a person's 'status' (e.g. married, widow) was left blank, it has been assumed they were unmarried.
The Size line gives the size of the family and the size of the household, calculated from the data on the original census forms. The family size includes children, cousins, grandparents etc.
The Occupation line is generally as on the original census form, so that graphs can be drawn. Occasionally if the definition requires extra information, it will be clarified in the 'Notes' field below. If the original entry refers to a wife/son/daughter and not actually to a working person, the entry is transferred to the 'Notes' field.
The Birth Town, Birth County and Birth Country fields are as on the original census form. When graphing, you may have a field which says 'Not recorded'. This may mean the enumerator didn't put it in, or some other reason, such as the house being uninhabited. Check the full file linked to Activity Sheet 1 if you need further information on this.
When graphing, you can have up to 200 bars or segments in the graph, but it may then become unintelligible. Use the Qty (Quantity) to show option to control the number of bars or segments.
There are some other specific controls which are best discovered by experimentation. For instance, the Qty (Quantity) to show option mentioned above only becomes available if you've chosen a 'Bar' or 'Pie' chart; a different option is available when you select a 'Histogram' to deal with numeric data.
The system is very powerful if you, for instance, search for specific data, before using the charting facility. To become familiar with how you can use it to build up a picture of the community when the census was taken, look at or print out Activity Sheet 3 from the Support and Resource unit which goes with the East and West Runton book and use it with Activity Sheet 2 unit which goes with the East and West Runton book.
Data can be for any of the census years from 1841 to 1901, and if sufficient data become available, we hope to allow analysis across data sets, enhancing its value to historical researchers.