Widget:PlaceNamesCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 102: Line 102:
"chartArea": {
"chartArea": {
"width": "92%",  
"width": "92%",  
"height": "65%",
"height": "60%",
"left": "35"
"left": "35"
},
},
Line 162: Line 162:
};
};
window.IRHB.charts.columnColors = [ "#4d8375", "#82a89e" ];
window.IRHB.charts.columnColors = [ "#4d8375", "#82a89e" ];
var getOptions = function(elemId) {
var getOptions = function(elemId) {
Line 176: Line 176:
opt.titleTextStyle = opt.titleTextStyle ||
opt.titleTextStyle = opt.titleTextStyle ||
{  
{  
color: "#000000", fontName: "inherit",  
color: "#800000", fontName: "inherit",  
fontSize: 20, bold: false, italic: false
fontSize: 22, bold: false
}
}
opt.hAxis = { direction: 1, slantedText: true, slantedTextAngle: 90,  
opt.hAxis = { direction: 1, slantedText: true, slantedTextAngle: 90,  
Line 274: Line 274:
var getData = function(elem) {
var getData = function(elem) {
var txt = elem.innerHTML;
var txt = elem.innerHTML.trim();
txt = txt.trim();
var startTagLgth = "<p>".length;
var startTagLgth = "<p>".length;
var endTagPos = txt.indexOf("</p>");
var endTagPos = txt.indexOf("</p>");

Revision as of 05:20, 5 November 2018

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