openaire-library/dashboard/plugins/components/stats/plugin-stats.component.ts

36 lines
50 KiB
TypeScript

import {Component} from '@angular/core';
import {PluginBaseComponent, PluginBaseInfo, PluginURL} from "../../utils/base-plugin.component";
import {HttpClient} from "@angular/common/http";
export class PluginStats extends PluginBaseInfo{
title = "Indicators"
disabledIndicators = [];
url:PluginURL = new PluginURL("123", "More","_blank", false);
compare(oldObject): any {
let newObj= super.compare(oldObject);
return newObj;
}
public static getMockStakeholder() {
let betaProfile = `{"type":"ri","projectUpdateDate":null,"index_id":"covid-19","index_name":"COVID-19","index_shortName":"COVID-19","statsProfile":"monitor","logoUrl":null,"isUpload":false,"name":"CONNECT","alias":"connect-template","description":null,"defaultId":null,"locale":"eu","visibility":"PUBLIC","funderType":null,"creationDate":1710257208064,"updateDate":1710314157384,"topics":[{"name":"Overview","alias":"overview","description":null,"icon":null,"visibility":"PUBLIC","creationDate":1710257226776,"updateDate":1710257226776,"defaultId":null,"categories":[{"name":"Overview","alias":"overview","description":null,"visibility":"PUBLIC","creationDate":1710257236271,"updateDate":1710257236271,"isOverview":false,"defaultId":null,"subCategories":[{"name":"Overview","alias":"overview","description":null,"visibility":"PUBLIC","creationDate":1710257236271,"updateDate":1710257236271,"defaultId":null,"charts":[{"title":"","defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710257247165,"updateDate":1710257257995,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"medium","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"bar","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"publication\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"bar\\",\\"color\\":\\"#705acfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"publication\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"!=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#705acfff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"percent\\"},{\\"stacking\\":\\"percent\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":true,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"align\\":\\"center\\",\\"text\\":\\"((__subtitle__))\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"percent\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{},\\"pointFormat\\":\\"<b>{point.percentage:.1f}%25</b> ({point.y})\\"}}}","parameters":{"type":"bar","title":"% of OA publications","subtitle":"","xAxisTitle":"","yAxisTitle":"","data_title_0":"OA Publications","data_title_1":"Non OA Publications","index_name":"Aurora Universities Network","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e46"},{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"medium","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"bar","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"dataset\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"bar\\",\\"color\\":\\"#705acfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"dataset\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"!=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#705acfff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"percent\\"},{\\"stacking\\":\\"percent\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":true,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"align\\":\\"center\\",\\"text\\":\\"((__subtitle__))\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"percent\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{},\\"pointFormat\\":\\"<b>{point.percentage:.1f}%25</b> ({point.y})\\"}}}","parameters":{"type":"bar","title":"% of OA Datasets","subtitle":"","xAxisTitle":"","yAxisTitle":"","data_title_0":"OA Datasets","data_title_1":"Non OA datasets","index_name":"Aurora Universities Network","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e47"}],"_id":"65f0745f6e006565e5546e45"},{"title":"","defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710257247186,"updateDate":1710257270262,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"large","height":"large","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"other","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighMaps\\",\\"mapDescription\\":{\\"chart\\":{\\"map\\":\\"custom/world-robinson-highres\\"},\\"colorAxis\\":{\\"min\\":null,\\"max\\":null,\\"type\\":\\"linear\\",\\"minColor\\":\\"#E6EBF5\\",\\"maxColor\\":\\"#003399\\"},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"exporting\\":{\\"enabled\\":true},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"mapNavigation\\":{\\"enabled\\":false},\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"world\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.organization.country\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"300\\"}}],\\"series\\":[{\\"data\\":[],\\"keys\\":[\\"iso-a2\\",\\"value\\"],\\"joinBy\\":\\"iso-a2\\",\\"dataLabels\\":{\\"enabled\\":false,\\"format\\":\\"{point.name}\\",\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"name\\":\\"publications\\"}],\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"align\\":\\"center\\",\\"margin\\":15},\\"zoomTo\\":{\\"zoomValue\\":1}}}","parameters":{"title":"Publications","subtitle":"per country","xAxisTitle":"","yAxisTitle":"","data_title_0":"publications","index_name":"Aurora Universities Network","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e49"}],"_id":"65f0745f6e006565e5546e48"},{"title":"","defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710257247201,"updateDate":1710257277981,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"large","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"column","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#5aadcfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"dataset\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"dataset.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"dataset.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"dataset\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"line\\",\\"color\\":\\"#7a7a7aff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"dataset\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"dataset.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"dataset.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]},{\\"field\\":\\"dataset.pid type\\",\\"type\\":\\"!=\\",\\"values\\":[\\"0\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"dataset\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#5aadcfff\\",\\"#7a7a7aff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{},{}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":true,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0,\\"color\\":\\"#000000ff\\"}}}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"column","title":"Datasets with a PID","subtitle":"over time","xAxisTitle":"","yAxisTitle":"datasets","data_title_0":"all datasets","data_title_1":"with PID","index_name":"Aurora Universities Network","start_year":"2007","end_year":"2022","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e4b"},{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"large","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"line","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#705acfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"indi_pub_downloads_year.no_downloads\\",\\"aggregate\\":\\"sum\\"},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"indi_pub_downloads_year.publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"indi_pub_downloads_year\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"0\\"}}],\\"colors\\":[\\"#705acfff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}}}},\\"legend\\":{\\"enabled\\":false},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"line","title":"Total Downloads","subtitle":"over time (year of publication)","xAxisTitle":"year","yAxisTitle":"downloads","data_title_0":"downloads","index_name":"Aurora Universities Network","start_year":"2002","end_year":"2022","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e4c"}],"_id":"65f0745f6e006565e5546e4a"},{"title":"","defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710257247221,"updateDate":1710257284216,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"large","height":"large","tags":null,"visibility":"RESTRICTED","creationDate":1710257247161,"updateDate":1710257247161,"defaultId":null,"indicatorPaths":[{"type":"column","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#9b81efff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Embargo\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_2__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#ff7171ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Restricted\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_3__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#bd0202ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Closed Access\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_4__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#b0b0b0ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"not available\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#9b81efff\\",\\"#ff7171ff\\",\\"#bd0202ff\\",\\"#b0b0b0ff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"normal\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"column","title":"Publications","subtitle":"by access rights, over time","xAxisTitle":"","yAxisTitle":"","data_title_0":"Open Access","data_title_1":"Embargo","data_title_2":"Restricted","data_title_3":"Closed Access","data_title_4":"not available","index_name":"Aurora Universities Network","start_year":"2007","end_year":"2022","statsProfile":null},"filters":{}}],"_id":"65f0745f6e006565e5546e4e"}],"_id":"65f0745f6e006565e5546e4d"}],"numbers":[],"_id":"65f074546e006565e5546e43"}],"_id":"65f074546e006565e5546e44"}],"_id":"65f0744a6e006565e5546e42"}],"_id":"65f074386e006565e5546e3f"}`;
let prodProfile = `{"type":"ri","projectUpdateDate":null,"index_id":"aurora","index_name":"Aurora Universities Network","index_shortName":"Aurora Universities Network","statsProfile":"monitor_aurora","logoUrl":null,"isUpload":false,"name":"CONNECT","alias":"connect-template","description":"Template profiles with the indicators to be embedded in CONNECT","defaultId":null,"locale":"eu","visibility":"PUBLIC","funderType":null,"creationDate":1710171610370,"updateDate":1711613628625,"topics":[{"name":"Overview","alias":"overview","description":null,"icon":null,"visibility":"PUBLIC","creationDate":1710171645832,"updateDate":1710171645832,"defaultId":null,"categories":[{"name":"Overview","alias":"overview","description":null,"visibility":"PUBLIC","creationDate":1710171681587,"updateDate":1710171681587,"isOverview":false,"defaultId":null,"subCategories":[{"name":"Overview","alias":"overview","description":null,"visibility":"PUBLIC","creationDate":1710171681587,"updateDate":1710171681587,"defaultId":null,"charts":[{"title":null,"defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710256912328,"updateDate":1710256912328,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"medium","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711612659389,"defaultId":null,"indicatorPaths":[{"type":"bar","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"publication\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"bar\\",\\"color\\":\\"#717171ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"publication\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"!=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#717171ff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"percent\\"},{\\"stacking\\":\\"percent\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":true,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"align\\":\\"center\\",\\"text\\":\\"((__subtitle__))\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"percent\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{},\\"pointFormat\\":\\"<b>{point.percentage:.1f}%25</b> ({point.y})\\"}}}","parameters":{"type":"bar","title":"%25 of OA Publications","subtitle":"","xAxisTitle":"","yAxisTitle":"%25","data_title_0":"OA Publications","data_title_1":"Non OA Publications","index_name":"Aurora Universities Network"},"filters":{}}],"_id":"65f072eb6c2043760abba9a4"},{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"medium","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711612456266,"defaultId":null,"indicatorPaths":[{"type":"bar","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"dataset\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"bar\\",\\"color\\":\\"#717171ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"result\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"result.concept.category.context.name\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"result.type\\",\\"type\\":\\"=\\",\\"values\\":[\\"dataset\\"]},{\\"field\\":\\"result.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"result.access mode\\",\\"type\\":\\"!=\\",\\"values\\":[\\"Open Access\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"result\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#717171ff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"percent\\"},{\\"stacking\\":\\"percent\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":true,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"align\\":\\"center\\",\\"text\\":\\"((__subtitle__))\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"percent\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{},\\"pointFormat\\":\\"<b>{point.percentage:.1f}%25</b> ({point.y})\\"}}}","parameters":{"type":"bar","title":"%25 of OA Datasets","subtitle":"","xAxisTitle":"","yAxisTitle":"%25","data_title_0":"OA Datasets","data_title_1":"Non OA datasets","index_name":"Aurora Universities Network"},"filters":{}}],"_id":"65f072bc7a76717ea88e49f7"}],"_id":"65f073106c2043760abba9a5"},{"title":null,"defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710241327847,"updateDate":1710241327847,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"large","height":"large","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711613602263,"defaultId":null,"indicatorPaths":[{"type":"other","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighMaps\\",\\"mapDescription\\":{\\"chart\\":{\\"map\\":\\"custom/world-robinson-highres\\"},\\"colorAxis\\":{\\"min\\":null,\\"max\\":null,\\"type\\":\\"linear\\",\\"minColor\\":\\"#E6EBF5\\",\\"maxColor\\":\\"#003399\\"},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"exporting\\":{\\"enabled\\":true},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"mapNavigation\\":{\\"enabled\\":false},\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"world\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.organization.country\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"300\\"}}],\\"series\\":[{\\"data\\":[],\\"keys\\":[\\"iso-a2\\",\\"value\\"],\\"joinBy\\":\\"iso-a2\\",\\"dataLabels\\":{\\"enabled\\":false,\\"format\\":\\"{point.name}\\",\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"name\\":\\"publications\\"}],\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"align\\":\\"center\\",\\"margin\\":15},\\"zoomTo\\":{\\"zoomValue\\":1}}}","parameters":{"title":"Publications","subtitle":"per country","xAxisTitle":"","yAxisTitle":"","data_title_0":"publications","index_name":"Aurora Universities Network"},"filters":{}}],"_id":"65ef26647a76717ea88e49b9"}],"_id":"65f0362f7a76717ea88e49c5"},{"title":"","defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710171748876,"updateDate":1710172326046,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"large","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711613555808,"defaultId":null,"indicatorPaths":[{"type":"column","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#5aadcfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"dataset\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"dataset.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"dataset.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"dataset\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"line\\",\\"color\\":\\"#7a7a7aff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"dataset\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"dataset.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"dataset.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"dataset.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]},{\\"field\\":\\"dataset.pid type\\",\\"type\\":\\"!=\\",\\"values\\":[\\"0\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"dataset\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#5aadcfff\\",\\"#7a7a7aff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{},{}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":true,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0,\\"color\\":\\"#000000ff\\"}}}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"column","title":"Datasets with a PID","subtitle":"over time","xAxisTitle":"","yAxisTitle":"datasets","data_title_0":"all datasets","data_title_1":"with PID","index_name":"Aurora Universities Network","start_year":"2007","end_year":"2023"},"filters":{}}],"_id":"65ef26a67a76717ea88e49bf"},{"name":"","description":"","additionalDescription":"","type":"chart","width":"medium","height":"large","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711613539118,"defaultId":null,"indicatorPaths":[{"type":"line","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#705acfff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"indi_pub_downloads_year.no_downloads\\",\\"aggregate\\":\\"sum\\"},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"indi_pub_downloads_year.publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"indi_pub_downloads_year.publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"indi_pub_downloads_year\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"0\\"}}],\\"colors\\":[\\"#705acfff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}}}},\\"legend\\":{\\"enabled\\":false},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"line","title":"Total Downloads","subtitle":"over time (year of publication)","xAxisTitle":"year","yAxisTitle":"downloads","data_title_0":"downloads","index_name":"Aurora Universities Network","start_year":"2002","end_year":"2023"},"filters":{}}],"_id":"65ef26e96c2043760abba98a"}],"_id":"65ef26647a76717ea88e49b8"},{"title":null,"defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710241367664,"updateDate":1710241367664,"indicators":[{"name":"","description":"","additionalDescription":"","type":"chart","width":"large","height":"large","tags":null,"visibility":"PUBLIC","creationDate":null,"updateDate":1711613512246,"defaultId":null,"indicatorPaths":[{"type":"column","format":"NUMBER","source":"stats-tool","url":"chart?json=","jsonPath":[],"chartObject":"{\\"library\\":\\"HighCharts\\",\\"chartDescription\\":{\\"queries\\":[{\\"name\\":\\"((__data_title_0__))\\",\\"type\\":\\"((__type__))\\",\\"color\\":\\"#0500a5c7\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Open Access\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_1__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#9b81efff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Embargo\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_2__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#ff7171ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Restricted\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_3__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#bd0202ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"Closed Access\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}},{\\"name\\":\\"((__data_title_4__))\\",\\"type\\":\\"column\\",\\"color\\":\\"#b0b0b0ff\\",\\"query\\":{\\"parameters\\":[],\\"select\\":[{\\"field\\":\\"publication\\",\\"aggregate\\":\\"count\\"},{\\"field\\":\\"publication.year\\",\\"aggregate\\":null}],\\"filters\\":[{\\"groupFilters\\":[{\\"field\\":\\"publication.concept.category.context.name\\",\\"type\\":\\"=\\",\\"values\\":[\\"((__index_name__))\\"]},{\\"field\\":\\"publication.access mode\\",\\"type\\":\\"=\\",\\"values\\":[\\"not available\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\">=\\",\\"values\\":[\\"((__start_year__))\\"]},{\\"field\\":\\"publication.year\\",\\"type\\":\\"<=\\",\\"values\\":[\\"((__end_year__))\\"]}],\\"op\\":\\"AND\\"}],\\"entity\\":\\"publication\\",\\"profile\\":\\"((__profile__))\\",\\"limit\\":\\"30\\"}}],\\"colors\\":[\\"#0500a5c7\\",\\"#9b81efff\\",\\"#ff7171ff\\",\\"#bd0202ff\\",\\"#b0b0b0ff\\",\\"#2f7ed8\\",\\"#0d233a\\",\\"#8bbc21\\",\\"#910000\\",\\"#1aadce\\",\\"#492970\\",\\"#f28f43\\",\\"#77a1e5\\",\\"#c42525\\",\\"#a6c96a\\"],\\"series\\":[{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"},{\\"stacking\\":\\"normal\\"}],\\"chart\\":{\\"type\\":\\"line\\",\\"polar\\":false,\\"backgroundColor\\":\\"#FFFFFFFF\\",\\"borderColor\\":\\"#335cadff\\",\\"borderRadius\\":0,\\"borderWidth\\":0,\\"plotBorderColor\\":\\"#ccccccff\\",\\"plotBorderWidth\\":0,\\"zoomType\\":\\"xy\\"},\\"title\\":{\\"style\\":{\\"color\\":\\"#333333FF\\",\\"fontSize\\":\\"18px\\"},\\"text\\":\\"((__title__))\\",\\"margin\\":15,\\"align\\":\\"center\\"},\\"subtitle\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"12px\\"},\\"text\\":\\"((__subtitle__))\\",\\"align\\":\\"center\\"},\\"yAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__yAxisTitle__))\\"},\\"zoomEnabled\\":false,\\"reversedStacks\\":false},\\"xAxis\\":{\\"title\\":{\\"style\\":{\\"color\\":\\"#666666FF\\",\\"fontSize\\":\\"11px\\"},\\"text\\":\\"((__xAxisTitle__))\\"},\\"zoomEnabled\\":false},\\"lang\\":{\\"noData\\":\\"No Data available for the Query\\"},\\"exporting\\":{\\"enabled\\":true},\\"plotOptions\\":{\\"series\\":{\\"dataLabels\\":{\\"enabled\\":false,\\"style\\":{\\"textOutline\\":\\"2px contrast\\",\\"stroke-width\\":0}},\\"stacking\\":\\"normal\\"}},\\"legend\\":{\\"layout\\":\\"horizontal\\",\\"align\\":\\"center\\",\\"verticalAlign\\":\\"bottom\\",\\"enabled\\":true},\\"credits\\":{\\"enabled\\":false,\\"href\\":null},\\"tooltip\\":{\\"style\\":{}}}}","parameters":{"type":"column","title":"Publications","subtitle":"by access rights, over time","xAxisTitle":"","yAxisTitle":"","data_title_0":"Open Access","data_title_1":"Embargo","data_title_2":"Restricted","data_title_3":"Closed Access","data_title_4":"not available","index_name":"Aurora Universities Network","start_year":"2007","end_year":"2023"},"filters":{}}],"_id":"65ef27bf6c2043760abba997"}],"_id":"65f036576c2043760abba9a3"},{"title":null,"defaultId":null,"stakeholderAlias":"connect-template","type":"chart","creationDate":1710256788215,"updateDate":1710256788215,"indicators":[],"_id":"65f072947a76717ea88e49f6"}],"numbers":[],"_id":"65ef26217a76717ea88e49b6"}],"_id":"65ef26217a76717ea88e49b7"}],"_id":"65ef25fd6c2043760abba985"}],"_id":"65ef25da6c2043760abba982"}`;
// return JSON.parse(properties.environment == 'production'?prodProfile:betaProfile)
return JSON.parse(prodProfile);
}
public static getDefaultProfile() {
return "monitor_ris_tail";
}
}
@Component({
selector: 'plugin-stats',
templateUrl: 'plugin-stats.component.html'
})
export class PluginStatsComponent extends PluginBaseComponent<PluginStats>{
constructor(private http: HttpClient ) {
super();
}
}