Start/End Dates | SUM22 |
Title | Alma Analytics Report & Google Chart |
Purposes (reasons/motivation) | How to put all necessary information in one location instead of multiple locations (e.g., Alma Analytics report) |
Goals (results/directions) |
To embed an Alma Analytics Report in a LibGuide Page |
Objectives (actions/steps) | |
Methods |
Alma Analytics Report & HTML codes
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> // PLACE YOUR API KEY HERE // DO NOT CHANGE // LOAD GOOGLE CHARTS /* GET RESULTS FROM THE ANALYTICS API AND EMBED THE CHART IN THE WEBPAGE INPUT PARAMETERS
var urllink = baseURL + "almaws/v1/analytics/reports?path=" + path + "&limit=25&apikey=" + apiKey; $.ajax({ success: function(analyticsData, textStatus, jqXHR) { var data = new google.visualization.DataTable(); var userGroup; if (($(row).find(nameColumn) != null) && ($(row).find(nameColumn).text().trim() != "")) { var options = { var chart; if (tableStyle == 1) { console.log("Pie Chart"); chart = new google.visualization.PieChart(document.getElementById(tableName)); } else if (tableStyle == 2) { chart = new google.visualization.ColumnChart(document.getElementById(tableName)); } else if (tableStyle == 3) { chart = new google.visualization.AreaChart(document.getElementById(tableName)); } else if (tableStyle == 4) { chart = new google.visualization.BarChart(document.getElementById(tableName)); chart.draw(data, options); error: function(jqXHR, textStatus, errorThrown) {
|
Results | Math Circulation Stats Last 5 Years |
Findings | https://guides.lib.uni.edu/c.php?g=667532&p=9123709 |
Staff | Codes from Greg from ISU & Modified codes from Matt from UNI |
Additional Information |
https://developers. https://developers.exlibrisgroup.com/blog/embedding-alma-analytics-reports-in-web-pages/ |
References | |
Benefits (e.g., Strategic Goals) | |
Required Resources | |
Anticipated Duration | |
Possible Deadline |