Jump to: navigation, search

Difference between revisions of "Widget:PnChoropleths"

m
m
Line 197: Line 197:
 
'<tr><td>Km<sup>2</sup>/PN</td><td colspan="2">' + e.km2perpn + '</td></tr>' +
 
'<tr><td>Km<sup>2</sup>/PN</td><td colspan="2">' + e.km2perpn + '</td></tr>' +
 
'<tr><td>PN/km<sup>2</sup></td><td colspan="2">' + e.pnperkm2 + '</td></tr>' +
 
'<tr><td>PN/km<sup>2</sup></td><td colspan="2">' + e.pnperkm2 + '</td></tr>' +
'<tr><td>PN/km<sup>2 idx</sup></td><td colspan="2">' + e.pnperkm2idx + '</td></tr>' +
+
'<tr><td>PN/km<sup>2</sup> idx</td><td colspan="2">' + e.pnperkm2idx + '</td></tr>' +
 
'<tr><td>PN/county avg.</td><td colspan="2">' + e.pnpercounty + '</td></tr>' +
 
'<tr><td>PN/county avg.</td><td colspan="2">' + e.pnpercounty + '</td></tr>' +
 
'</tbody>' +
 
'</tbody>' +
 
'</table>';
 
'</table>';
 
get("dSet").innerHTML = tables;
 
get("dSet").innerHTML = tables;
 +
console.log(Object.keys(e));
 
};
 
};
 +
 +
 +
function prepareCountyData(itm) {
 +
//var txt =
 +
//<tbody id="Bedfordshire"><tr class="header"><th colspan="2">Bedfordshire</th><th><span class="expando-c" style="display: none;">—&nbsp;</span><span class="expando-o" style="display: inline-block;">▢&nbsp;</span></th></tr><tr style="display: none;"><td style="width: 127px;">Area (km<sup>2</sup>)</td><td colspan="2">1207.96236</td></tr><tr style="display: none;"><td style="width: 127px;">Population</td><td colspan="2">16</td></tr><tr style="display: none;"><td style="width: 127px;">Pop. density/km<sup>2</sup></td><td colspan="2">133.03725788277</td></tr><tr style="display: none;"><td style="width: 127px;">Km<sup>2</sup>/PN</td><td colspan="2">603.98118</td></tr><tr style="display: none;"><td style="width: 127px;">PN/km<sup>2</sup></td><td colspan="2">0.00165568072833</td></tr><tr style="display: none;"><td style="width: 127px;">RH names</td><td colspan="2">2</td></tr><tr style="display: none;"><td style="width: 127px;">Local traditions</td><td colspan="2">0</td></tr><tr style="display: none;"><td style="width: 127px;">Literary locales</td><td colspan="2">0</td></tr><tr style="display: none;"><td style="width: 127px;">Artifacts</td><td colspan="2">0</td></tr><tr style="display: none;"><td style="width: 127px;">Miscellaneous</td><td colspan="2">0</td></tr><tr style="display: none;"><td style="width: 127px;">Total count</td><td colspan="2">2</td></tr><tr style="display: none;"><td style="width: 127px;">Count idx.</td><td>10</td><td style="background-color:#b70000; width:1.5em;"></td></tr><tr style="display: none;"><td style="width: 127px;">PN/km<sup>2</sup> idx.</td><td>28</td><td style="background-color:#d11919; width:1.5em;"></td></tr><tr style="display: none;"><td style="width: 127px;">PN/km<sup>2</sup>/pop. idx.</td><td>14</td><td style="background-color:#b70000; width:1.5em;"></td></tr></tbody>
 +
}
  
 
}() );
 
}() );

Revision as of 09:36, 2 June 2019

This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.