Widget:PlaceNamesCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 306: Line 306:
var dataRowsAr = [];
var dataRowsAr = [];
for (var key in itemsObj) {
for (var key in itemsObj) {
console.log("key: " + key);
  if (itemsObj.hasOwnProperty(key)) {
  if (itemsObj.hasOwnProperty(key)) {
  dataRowsAr = dataRowsAr.concat(itemsObj[key]);
  dataRowsAr = dataRowsAr.concat(itemsObj[key]);
Line 325: Line 324:
xValue++;
xValue++;
}
}
console.log("xValue: " + xValue);
dataRowsAr[i][0] = xValue;
dataRowsAr[i][0] = xValue;
}
}

Revision as of 05:26, 24 October 2018

This widget generates the Google charts on landing pages in the Place-names and Festivals sections of IRHB. It takes no parameters.