Commit 2b76853e authored by Tasio Mendez's avatar Tasio Mendez
Browse files
parents 6c0db847 8564a177
Pipeline #1565 passed with stages
in 12 seconds
......@@ -542,7 +542,15 @@ Data can be provided in one of three ways:
if (this.rows && this.rows.length > 0 && this.cols &&
this.cols.length > 0) {
// Create the data table from cols and rows.
// console.log(data)
//Check that there are not undefined elements
// If exists set it to unknown
for(var i = 0; i < this.rows.length ; i++){
if(this.rows[i][0] == undefined){
this.rows[i][0] = "Unknown";
}
}
dataTable = new google.visualization.DataTable();
dataTable.cols = this.cols;
for (var i = 0; i < this.cols.length; i++) {
......@@ -573,7 +581,6 @@ Data can be provided in one of three ways:
// There is an error when rows have not the same length, we have to
// delete unnecesary data from rows (undefined values)
var numCols = 0;
for(; this.rows[0][numCols] != undefined; numCols++);
......
[{"http://dbpedia.org/page/Dabiq_(magazine)": "Dabiq", "http://dbpedia.org/page/Rumiyah_(magazine)": "Rumiyah","http://dbpedia.org/resource/Al_Jazeera":"Al Jazeera","http://dbpedia.org/resource/CNN":"CNN","http://dbpedia.org/resource/Twitter":"Twitter","http://dbpedia.org/resource/The_New_York_Times":"The New York Times","http://dbpedia.org/resources/Google_News":"Google News","http://dbpedia.org/resource/Google_News":"Google News","http://dbpedia.org/resource/Engadget":"Engadget","http://dbpedia.org/resource/The_Verge":"The Verge","http://dbpedia.org/resource/Lifehacker":"Lifehacker","http://dbpedia.org/resource/CNET":"CNET","http://dbpedia.org/resource/Reuters":"Reuters","http://dbpedia.org/resource/TechCrunch":"TechCrunch","http://dbpedia.org/resource/Time_(magazine)":"Time","http://dbpedia.org/resource/BBC_News":"BBC News"}]
[{"http://dbpedia.org/page/Dabiq_(magazine)": "Dabiq", "http://dbpedia.org/page/Rumiyah_(magazine)": "Rumiyah","http://dbpedia.org/resource/Al_Jazeera":"Al Jazeera","http://dbpedia.org/resource/CNN":"CNN","http://dbpedia.org/resource/Twitter":"Twitter","http://dbpedia.org/resource/The_New_York_Times":"The New York Times","http://dbpedia.org/resources/Google_News":"Google News","http://dbpedia.org/resource/Engadget":"Engadget","http://dbpedia.org/resource/The_Verge":"The Verge","http://dbpedia.org/resource/Lifehacker":"Lifehacker","http://dbpedia.org/resource/CNET":"CNET","http://dbpedia.org/resource/Reuters":"Reuters","http://dbpedia.org/resource/TechCrunch":"TechCrunch","http://dbpedia.org/resource/Time_(magazine)":"Time","http://dbpedia.org/resource/BBC_News":"BBC News","http://dbpedia.org/resource/ABC_News":"ABC News","http://dbpedia.org/resource/Infowar":"Infowar","http://dbpedia.org/resource/Slashdot":"Slashdot","http://dbpedia.org/resource/Business_Insider":"Business Insider","http://dbpedia.org/resource/Fox_News":"Fox News","http://dbpedia.org/resource/RT_(TV_network)":"RT (TV network)","http://dbpedia.org/resource/New_York_(magazine)":"New York (magazine)","http://dbpedia.org/resource/CBS_News":"CBS News","http://dbpedia.org/resource/The_Daily_Telegraph":"The Daily Telegraph","http://dbpedia.org/resource/Gizmodo":"Gizmodo","http://dbpedia.org/resource/The_Times":"The Times","http://dbpedia.org/resource/USA_Today":"USA Today","http://dbpedia.org/resource/Moneycontrol.com":"Moneycontrol.com","http://dbpedia.org/resource/Apple_Inc":"Apple Inc","http://dbpedia.org/resource/Phys.org":"Phys","http://dbpedia.org/resource/Tom_Engelhardt":"Tom Engerhardt","http://dbpedia.org/resource/Vice_News":"Vice News","http://dbpedia.org/resource/Salon_(website)":"Salon"}]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment