Widget:Website graphs

Show the graphs for a website. 

gs = [];

gs.push( new Dygraph( document.getElementById("apiary-graph-articles"), "http://wikiapiary.com/apiary/articles.php?id=", {   labels: [ 'Date', 'Articles', 'Pages'], 'Pages': { strokeWidth: 2 },   'Articles': { axis: { }   },    axes: { y: { labelsKMB: true },     y2: { labelsKMB: true }   },    axisLabelFontSize: 10, maxNumberWidth: 12, title: ' Pages and Articles', labelsDiv: document.getElementById("apiary-graph-articles-data"), ylabel: 'Pages', yLabelWidth: 12, y2label: 'Articles', rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-users"), "http://wikiapiary.com/apiary/users.php?id=", {   labels: [ 'Date', 'Users', 'Active Users'], 'Users': { axis: { }   },    'Active Users': { fillGraph: true },   axes: { y: { labelsKMB: true },     y2: { labelsKMB: true }   },    ylabel: 'Active Users', y2label: 'Users', axisLabelFontSize: 10, maxNumberWidth: 12, title: ' Active Users and Users', labelsDiv: document.getElementById("apiary-graph-users-data"), yLabelWidth: 12, rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-edits"), "http://wikiapiary.com/apiary/edits.php?id=", {   labels: [ 'Date', 'Edits'], axes: { y: { labelsKMB: true }   },    ylabel: 'Edits', axisLabelFontSize: 10, maxNumberWidth: 12, fillGraph: true, title: ' Edits', labelsDiv: document.getElementById("apiary-graph-edits-data"), yLabelWidth: 12, rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-response-time"), "http://wikiapiary.com/apiary/response_timer.php?id=", {   labels: [ 'Date', 'Response Time'], axes: { y: { labelsKMB: true }   },    ylabel: 'Response Time (sec)', axisLabelFontSize: 10, maxNumberWidth: 12, title: ' Response Time', labelsDiv: document.getElementById("apiary-graph-response-time-data"), yLabelWidth: 12, includeZero: true, rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-jobs"), "http://wikiapiary.com/apiary/jobs.php?id=", {   labels: [ 'Date', 'Jobs'], axes: { y: { labelsKMB: true }   },    ylabel: 'Jobs', axisLabelFontSize: 10, maxNumberWidth: 12, title: ' Job Queue', labelsDiv: document.getElementById("apiary-graph-jobs-data"), yLabelWidth: 12, fillGraph: true, includeZero: true, rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-propcount"), "http://wikiapiary.com/apiary/propcount.php?id=", {   labels: [ 'Date', 'Properties'], axes: { y: { labelsKMB: true }   },    ylabel: 'Properties', axisLabelFontSize: 10, fillGraph: true, maxNumberWidth: 12, title: ' Property Count', labelsDiv: document.getElementById("apiary-graph-propcount-data"), yLabelWidth: 12, rightGap: 10 } ) );

gs.push( new Dygraph( document.getElementById("apiary-graph-props"), "http://wikiapiary.com/apiary/properties.php?id=", {   labels: [ 'Date', 'Property Pages', 'Used Properties', 'Declared Properties'], axes: { y: { labelsKMB: true }   },    ylabel: 'Properties', axisLabelFontSize: 10, maxNumberWidth: 12, title: ' Properties', labelsDiv: document.getElementById("apiary-graph-props-data"), yLabelWidth: 12, rightGap: 10 } ) );