url: this.sanitizer.bypassSecurityTrustResourceUrl(chartsFrameAPIURL+'chart?json='+StringUtils.URIEncode('{"library":"HighCharts","chartDescription":{"queries":[{"name":"Data","type":"column","query":{"select":[{"field":"'+this.results[type].type+'","aggregate":"count"},{"field":"'+this.results[type].type+'.year","aggregate":null}],"filters":[{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.context.name","type":"=","values":["'+communityName+'"]}],"op":"AND"},{"groupFilters":[{"field":"'+this.results[type].type+'.year","type":">","values":["2000"]}],"op":"AND"}],"entity":"'+this.results[type].type+'","profile":"OpenAIRE All-inclusive","limit":"30"}}],"chart":{"backgroundColor":"#FFFFFFFF","borderColor":"#335cadff","borderRadius":0,"borderWidth":0,"plotBorderColor":"#ccccccff","plotBorderWidth":0},"title":{"text":""},"subtitle":{},"yAxis":{"title":{"text":"'+this.results[type].name+'"}},"xAxis":{"title":{"text":"Year"}},"lang":{"noData":"No Data available for the Query"},"exporting":{"enabled":true},"plotOptions":{"series":{"dataLabels":{"enabled":false}}},"legend":{"enabled":true,"align":"center","verticalAlign":"bottom","layout":"horizontal"},"credits":{"href":null,"enabled":true,"text":"Created by OpenAIRE via HighCharts"}}}')),
title:"How many "+this.results[type].name.toLowerCase()+" are there per year?"
};
chartsInfoMap[type+'Graph']={
url: this.sanitizer.bypassSecurityTrustResourceUrl(chartsFrameAPIURL+'chart?json='+StringUtils.URIEncode('{"library":"HighCharts","chartDescription":{"queries":[{"name":"Data","type":"pie","query":{"select":[{"field":"'+this.results[type].type+'","aggregate":"count"},{"field":"'+this.results[type].type+'.access mode","aggregate":null}],"filters":[{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.context.name","type":"=","values":["'+communityName+'"]}],"op":"AND"}],"entity":"'+this.results[type].type+'","profile":"OpenAIRE All-inclusive","limit":"30"}}],"chart":{"backgroundColor":"#FFFFFFFF","borderColor":"#335cadff","borderRadius":0,"borderWidth":0,"plotBorderColor":"#ccccccff","plotBorderWidth":0},"title":{"text":""},"subtitle":{},"yAxis":{"title":{}},"xAxis":{"title":{}},"lang":{"noData":"No Data available for the Query"},"exporting":{"enabled":true},"plotOptions":{"series":{"dataLabels":{"enabled":false}}},"legend":{"enabled":true,"align":"center","verticalAlign":"bottom","layout":"horizontal"},"credits":{"href":null,"enabled":true,"text":"Created by OpenAIRE via HighCharts"}}}')),
title:"What access rights do the "+this.results[type].name.toLowerCase()+" have?"
};
chartsInfoMap[type+'Projectcolumn']={
url: this.sanitizer.bypassSecurityTrustResourceUrl(chartsFrameAPIURL+'chart?json='+StringUtils.URIEncode('{"library":"HighCharts","chartDescription":{"queries":[{"name":"Data","type":"bar","query":{"select":[{"field":"'+this.results[type].type+'","aggregate":"count"},{"field":"'+this.results[type].type+'.project.acronym","aggregate":null}],"filters":[{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.context.name","type":"=","values":["'+communityName+'"]}],"op":"AND"}],"entity":"'+this.results[type].type+'","profile":"OpenAIRE All-inclusive","limit":"30"}}],"chart":{"backgroundColor":"#FFFFFFFF","borderColor":"#335cadff","borderRadius":0,"borderWidth":0,"plotBorderColor":"#ccccccff","plotBorderWidth":0},"title":{"text":""},"subtitle":{},"yAxis":{"title":{"text":"'+this.results[type].name+'"}},"xAxis":{"title":{}},"lang":{"noData":"No Data available for the Query"},"exporting":{"enabled":true},"plotOptions":{"series":{"dataLabels":{"enabled":false}}},"legend":{"enabled":true,"align":"center","verticalAlign":"bottom","layout":"horizontal"},"credits":{"href":null,"enabled":true,"text":"Created by OpenAIRE via HighCharts"}}}')),
title:"How many "+this.results[type].name.toLowerCase()+" are there per project?",
};
chartsInfoMap[type+'Projectpie']={
url: this.sanitizer.bypassSecurityTrustResourceUrl(chartsFrameAPIURL+'chart?json='+StringUtils.URIEncode('{"library":"HighCharts","chartDescription":{"queries":[{"name":"Data","type":"pie","query":{"select":[{"field":"'+this.results[type].type+'","aggregate":"count"},{"field":"'+this.results[type].type+'.project.acronym","aggregate":null}],"filters":[{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.context.name","type":"=","values":["'+communityName+'"]}],"op":"AND"}],"entity":"'+this.results[type].type+'","profile":"OpenAIRE All-inclusive","limit":"30"}}],"chart":{"backgroundColor":"#FFFFFFFF","borderColor":"#335cadff","borderRadius":0,"borderWidth":0,"plotBorderColor":"#ccccccff","plotBorderWidth":0},"title":{"text":""},"subtitle":{},"yAxis":{"title":{"text":"'+this.results[type].name+'"}},"xAxis":{"title":{}},"lang":{"noData":"No Data available for the Query"},"exporting":{"enabled":true},"plotOptions":{"series":{"dataLabels":{"enabled":false}}},"legend":{"enabled":true,"align":"center","verticalAlign":"bottom","layout":"horizontal"},"credits":{"href":null,"enabled":true,"text":"Created by OpenAIRE via HighCharts"}}}')),
title:"How many "+this.results[type].name.toLowerCase()+" are there per project?",
title:"How many "+this.results[type].name.toLowerCase()+" are there per project?",
};
//TODO check again
if(communityId=="egi"){
chartsInfoMap[type+'VOcolumn']={
url: this.sanitizer.bypassSecurityTrustResourceUrl(chartsFrameAPIURL+'chart?json='+StringUtils.URIEncode('{"library":"HighCharts","chartDescription":{"queries":[{"name":"Data","type":"bar","query":{"select":[{"field":"'+this.results[type].type+'","aggregate":"count"},{"field":"'+this.results[type].type+'.concept.name","aggregate":null}],"filters":[{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.context.name","type":"=","values":["'+communityName+'"]}],"op":"AND"},{"groupFilters":[{"field":"'+this.results[type].type+'.concept.category.name","type":"=","values":["EGI virtual organizations"]}],"op":"AND"}],"entity":"'+this.results[type].type+'","profile":"OpenAIRE All-inclusive","limit":"30"}}],"chart":{"backgroundColor":"#FFFFFFFF","borderColor":"#335cadff","borderRadius":0,"borderWidth":0,"plotBorderColor":"#ccccccff","plotBorderWidth":0},"title":{},"subtitle":{},"yAxis":{"title":{"text":"'+this.results[type].name+'"}},"xAxis":{"title":{"text":"Projects"}},"lang":{"noData":"No Data available for the Query"},"exporting":{"enabled":true},"plotOptions":{"series":{"dataLabels":{"enabled":false}}},"legend":{"enabled":true,"align":"center","verticalAlign":"bottom","layout":"vertical"},"credits":{"href":null,"enabled":true,"text":"Created by OpenAIRE via HighCharts"}}}')),
title:"How many "+this.results[type].name.toLowerCase()+" are there per EGI virtual organization?",