{"id":5939,"date":"2022-11-23T17:37:01","date_gmt":"2022-11-23T20:37:01","guid":{"rendered":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/?page_id=5939"},"modified":"2025-06-17T14:47:21","modified_gmt":"2025-06-17T17:47:21","slug":"indicadores","status":"publish","type":"page","link":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/indicadores\/","title":{"rendered":"Indicadores"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"5939\" class=\"elementor elementor-5939\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e7eefbf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e7eefbf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2295696\" data-id=\"2295696\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4e97dd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4e97dd3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8213985\" data-id=\"8213985\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f851bc5 elementor-widget elementor-widget-heading\" data-id=\"f851bc5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Indicadores<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fad746e elementor-widget elementor-widget-shortcode\" data-id=\"fad746e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><link rel=\"stylesheet\" href=\"\/\/code.jquery.com\/ui\/1.13.2\/themes\/base\/jquery-ui.css\">\r\n<script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.js\"><\/script>\r\n<script src=\"https:\/\/code.jquery.com\/ui\/1.13.2\/jquery-ui.js\"><\/script>\r\n<script>\r\n jQuery( function() {\r\n\r\n  var dateFormat = \"dd\/mm\/yy\",\r\n\t  \r\n    from =  jQuery( \"#from\" ).datepicker({\r\n\t\tminDate: new Date(2010, 4, 10),\r\n\t\tchangeMonth: true,\r\n        changeYear: true,\r\n\t\tnumberOfMonths: 1,\r\n\t\tdateFormat: \"dd\/mm\/yy\", \r\n\t\tdayNames: [\"Domingo\", \"Segunda\", \"Ter\u00e7a\", \"Quarte\", \"Quinta\", \"Sexta\", \"S\u00e1bado\"],\r\n\t\tdayNamesMin: [\"Dom\", \"Seg\", \"Ter\", \"Qua\", \"Qui\", \"Sex\", \"Sab\"],\r\n\t\tmonthNames: ['Janeiro','Fevereiro','Mar\u00e7o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']  \r\n     })\r\n      .on( \"change\", function() {\r\n          to.datepicker( \"option\", \"minDate\", getDate( this ) );\r\n        }),\r\n      to =  jQuery( \"#to\" ).datepicker({\r\n\t\tminDate: new Date(2010, 4, 10),  \r\n\t\tchangeMonth: true,\r\n        changeYear: true,\r\n        numberOfMonths: 1,\r\n\t    dateFormat: \"dd\/mm\/yy\", \r\n\t\tdayNames: [\"Domingo\", \"Segunda\", \"Ter\u00e7a\", \"Quarte\", \"Quinta\", \"Sexta\", \"S\u00e1bado\"],\r\n\t\tdayNamesMin: [\"Dom\", \"Seg\", \"Ter\", \"Qua\", \"Qui\", \"Sex\", \"Sab\"],\r\n\t\tmonthNames: ['Janeiro','Fevereiro','Mar\u00e7o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']  \r\n      })\r\n      .on( \"change\", function() {\r\n        from.datepicker( \"option\", \"maxDate\", getDate( this ) );\r\n      });\r\n \r\n    function getDate( element ) {\r\n      var date;\r\n      try {\r\n        date = $.datepicker.parseDate( dateFormat, element.value );\r\n      } catch( error ) {\r\n        date = null;\r\n      }\r\n \r\n      return date;\r\n    }\t \r\n\t \r\n\r\n\t\r\n\t \r\n  } );\r\n<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e7472cf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e7472cf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59d6cde\" data-id=\"59d6cde\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c635b1a elementor-widget elementor-widget-shortcode\" data-id=\"c635b1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><style>\r\n\t.desktop{\r\n\t\twidth: 210px;\r\n\t\tpadding: 7px 20px;\r\n\t\tmargin-right: 10px;\r\n\t\tmargin-left: 10px;\r\n\t\tfont-size: 14px;\r\n\t\tborder-color: #ced4da;\r\n\t\tborder-radius: 0.25rem;\r\n\r\n\t}\r\n\t.desktop:focus{\r\n\t\tborder-color: #bf2f03;\r\n\t\tbox-shadow: 0 0 0 0.2rem #db272354;\r\n\t}\r\n\t\r\n\tinput[type=text]{\r\n\t\twidth: 12%; \r\n\t\tpadding: 7px 20px;\r\n\t\tmargin-right: 10px;\r\n\t\tmargin-left: 10px;\r\n\t\tmargin-bottom: 0px;\r\n\t\tfont-size: 14px; \r\n\t\theight: 35px; \r\n\t\tborder-color: #bf2f03;\r\n\t}\r\n\t\r\n\tinput[type=submit]{\r\n\t\tbackground-color: #bf2f03; \r\n\t\twidth: 110px; \r\n\t\tpadding: 7px 20px; \r\n\t\tfont-size: 14px;\r\n\t\tmargin-right: 10px;\r\n\t\tmargin-left: 10px;\r\n\t}\r\n\t\r\n\t@media only screen and (max-width: 768px) {\r\n  \t.desktop{\r\n    \twidth: 30%;\r\n\t\tmargin-right: 0px;\r\n\t\tmargin-left: 0px;\r\n\t\t\r\n  \t\t}\r\n\t\r\n\tinput[type=text]{\r\n    \twidth: 12%;\r\n\t\tmargin-top: 10px;\r\n\t\tmargin-right: 0px;\r\n\t\tmargin-left: 0px;\t\r\n  \t\t}\r\n\tinput[type=submit]{\r\n\t\tmargin-top: 10px;\t\r\n\t\t}\t\r\n\t}\r\n\t\r\n<\/style>\r\n\t\r\n<center>\t\r\n\t\r\n\t  \r\n\t\t<form action=\"\" method=\"GET\">\r\n\t\t <b>Filtro:<\/b>\r\n\t\t\t<input type=\"text\" name=\"periodoI\" id=\"from\" value=\"10\/05\/2010\">\t<b> a <\/b>\r\n\t\t <input type=\"text\" name=\"periodoF\" id=\"to\" value=\"18\/08\/2026\">\t\r\n\t\t <input type=\"hidden\" name=\"code\" value=\"0\" >\r\n\t\t<input type=\"submit\" name=\"submit\" value=\"Pesquisar\">\t\r\n\t\t<\/form>\r\n\r\n<\/center>\t\r\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-526196c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"526196c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-72afa82\" data-id=\"72afa82\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-328eb86 elementor-widget elementor-widget-shortcode\" data-id=\"328eb86\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><span id='periodoI' hidden >2010\/05\/10<\/span><span id='periodoF'  hidden>2026\/08\/18<\/span><div id=\"spinner-div\"><img decoding=\"async\" id=\"loading-image\" src=\"https:\/\/www.bibliotecadigital.unicamp.br\/\\images\\loading.gif\" alt=\"Carregando...\" \/><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-92e0fd2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"92e0fd2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4307b1c\" data-id=\"4307b1c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cba4eae elementor-widget elementor-widget-heading\" data-id=\"cba4eae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Materiais<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-855fa24 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"855fa24\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-40b5844\" data-id=\"40b5844\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-523dd36 elementor-widget elementor-widget-html\" data-id=\"523dd36\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<canvas id=\"insert_doc\"><\/canvas>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1f7da39\" data-id=\"1f7da39\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1b46004 elementor-widget elementor-widget-html\" data-id=\"1b46004\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t <table align = \"center\" id=\"table_doc\" border=\"1\">\n <\/table>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8d661a2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8d661a2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f84e97\" data-id=\"4f84e97\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2141441 elementor-widget elementor-widget-heading\" data-id=\"2141441\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Acessos e Downloads por Ano<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1255c3d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1255c3d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-e9e2704\" data-id=\"e9e2704\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8844335 elementor-widget elementor-widget-html\" data-id=\"8844335\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<canvas id=\"grafico_ad\"><\/canvas>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-c901561\" data-id=\"c901561\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-966693e elementor-widget elementor-widget-html\" data-id=\"966693e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<table align = \"center\" id=\"table_ad\" border=\"1\">\n <\/table>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3e6e7d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3e6e7d4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1da763c\" data-id=\"1da763c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7530e33 elementor-widget elementor-widget-heading\" data-id=\"7530e33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Acessos e Downloads por Pa\u00edses<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a203455 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a203455\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-819cf1a\" data-id=\"819cf1a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fa70f7d elementor-widget elementor-widget-html\" data-id=\"fa70f7d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<table align = \"center\" id=\"table_countryV\" border=\"1\">\n<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3a02c41\" data-id=\"3a02c41\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-949f381 elementor-widget elementor-widget-html\" data-id=\"949f381\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<table align = \"center\" id=\"table_countryD\" border=\"1\">\n <\/table>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d56d9db elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d56d9db\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-182cc18\" data-id=\"182cc18\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3d4b0b3 elementor-widget elementor-widget-shortcode\" data-id=\"3d4b0b3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/3.9.1\/chart.min.js\" integrity=\"sha512-ElRFoEQdI5Ht6kZvyzXhYG9NqjtkmlkfYk0wr6wHxU9JEHakS7UJZNeml5ALk+8IKlU6jDgMabC3vkumRokgJA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"><\/script>\r\n\r\n<script>\r\n\tjQuery(document).ready(function(){\t\r\n\r\n\tvar periodoI=jQuery(\"#periodoI\").text();\r\n\tvar periodoF=jQuery(\"#periodoF\").text();\t\t\r\n\t\t\t\r\n    jQuery.ajax({\r\n      url: \"https:\/\/www.bibliotecadigital.unicamp.br\/manager\/indicadores\/graficos1.php\",\r\n      method: \"GET\",\r\n\t  data: {periodoI:periodoI,periodoF:periodoF},\t\t\r\n      success: function(data) {\r\n\t\t\tconsole.log(data);\r\n\t\t\tlet json = JSON.parse(data);\r\n\t\t\tvar anos = [];\r\n\t\t\tvar total =[];\r\n\r\n\t\t\tfor(var i in json) {\r\n\t\t\t\tanos.push(json[i].ano);\r\n\t\t\t\ttotal.push(json[i].total);\r\n\t\t\t}\t\r\n\r\n\t\t\tvar chartdata = {\r\n\t\t\t\tlabels: anos,\r\n\t\t\t\tdatasets : [\r\n\t\t\t\t{\r\n\t\t\t\t   label: 'Total de Documentos',\r\n\t\t\t\t   data: total,\r\n\t\t\t\t   borderColor: '#bf2F03',\r\n\t\t\t\t   backgroundColor:'#bf2F03',\r\n\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t };\r\n\r\n\t\t\t var ctx = jQuery(\"#insert_doc\");\r\n\r\n\t\t\t var barGraph = new Chart(ctx, {\r\n\t\t\t\ttype: 'line',\r\n\t\t\t\tdata: chartdata,\r\n\t\t\t\toptions: {\r\n\t\t\t\t  responsive: true,\r\n\t\t\t\t  plugins: {\r\n\t\t\t  \t  legend: {\r\n\t\t\t\t   position: 'top',\r\n\t\t\t      },\r\n\t\t\t     title: {\r\n\t\t\t\t display: false,\r\n\t\t\t\t text: ''\r\n\t\t\t   }\r\n\t\t\t  }\r\n\t\t     },\r\n\t\t\t  });\r\n\t\t  \r\n\t\t  \r\n\t constructTable('#table_doc',json);\r\n    },\r\n    error: function(data) {\r\n      console.log(data);\r\n    }, \r\n\t  complete: function () {\r\n\t  $('#spinner-div').hide();\/\/Request is complete so hide spinner\r\n\t}\r\n       \r\n  });\r\n\t\t\r\n\r\n   jQuery.ajax({\r\n      url: \"https:\/\/www.bibliotecadigital.unicamp.br\/manager\/indicadores\/graficos4.php\",\r\n      method: \"GET\",\r\n\t  data: {periodoI:periodoI,periodoF:periodoF},\t\t\r\n      success: function(data) {\r\n\t\t\tconsole.log(data);\r\n\t\t\tlet json = JSON.parse(data);\r\n\t\t\tvar anos = [];\r\n\t\t\tvar visitas = [];\r\n\t\t\tvar downloads =[];\r\n\r\n\t\t\tfor(var i in json) {\r\n\t\t\t\tanos.push(json[i].ano);\r\n\t\t\t\tvisitas.push(json[i].acessos);\r\n\t\t\t\tdownloads.push(json[i].downloads);\r\n\t\t\t}\t\r\n\r\n\t\t\tvar chartdata = {\r\n\t\t\t\tlabels: anos,\r\n\t\t\t\tdatasets : [\r\n\t\t\t\t{\r\n\t\t\t\t   label: 'Total de Acessos',\r\n\t\t\t\t   data: visitas,\r\n\t\t\t\t   borderColor: '#bf2F03',\r\n\t\t\t\t   backgroundColor:'#bf2F03',\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t   label: 'Total de Downloads',\r\n\t\t\t\t   data: downloads,\r\n\t\t\t\t   borderColor: '#310cfb',\r\n\t\t\t\t   backgroundColor: '#310cfb',\r\n\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t };\r\n\t\t\t var ctx = jQuery(\"#grafico_ad\");\r\n\r\n\t\t\t var barGraph = new Chart(ctx, {\r\n\t\t\t\ttype: 'bar',\r\n\t\t\t\tdata: chartdata,\r\n\t\t\t\toptions: {\r\n\t\t\t\t  responsive: true,\r\n\t\t\t\t  plugins: {\r\n\t\t\t  \t  legend: {\r\n\t\t\t\t   position: 'top',\r\n\t\t\t      },\r\n\t\t\t     title: {\r\n\t\t\t\t display: false,\r\n\t\t\t\t text: ''\r\n\t\t\t   }\r\n\t\t\t  }\r\n\t\t     },\r\n\t\t\t  });\r\n\t\t  \r\n\t\t  \r\n\t constructTable('#table_ad',json);\r\n    },\r\n    error: function(data) {\r\n      console.log(data);\r\n    }, \r\n\t  complete: function () {\r\n\t  $('#spinner-div').hide();\/\/Request is complete so hide spinner\r\n\t}\r\n       \r\n  });\r\n  \t\t\t\t\r\n var tipo = \"v\";\t\t\r\n $('#spinner-div').show();\t\t\r\n  $.ajax({\r\n\t\turl: \"https:\/\/www.bibliotecadigital.unicamp.br\/manager\/indicadores\/graficos5.php\",\r\n\t    data: {periodoI:periodoI,periodoF:periodoF,tipo:tipo},\t  \r\n\t\tsuccess: function(data) {\r\n\t\t  console.log(data);\r\n\t\t  let json = JSON.parse(data);\r\n\t\t  \r\n\t\t  constructTable('#table_countryV',json);\r\n\t\t  \r\n\t\t},\r\n\t\terror: function(data) {\r\n\t\t  console.log(data);\r\n\t\t}, \r\n\t\t complete: function () {\r\n\t\t\t$('#spinner-div').hide();\/\/Request is complete so hide spinner\r\n\t\t}\r\n\t  });\r\n\t\t\r\n\r\n$('#spinner-div').show();\t\t\t\r\n var tipo = \"d\";\t\t\r\n  $.ajax({\r\n\t\turl: \"https:\/\/www.bibliotecadigital.unicamp.br\/manager\/indicadores\/graficos5.php\",\r\n\t    crossDomain: true,\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {periodoI:periodoI,periodoF:periodoF,tipo:tipo},\t\r\n\t\tsuccess: function(data) {\r\n\t\t  console.log(data);\r\n\t\t  let json = JSON.parse(data);\r\n\t\t  \r\n\t\t  constructTable('#table_countryD',json);\r\n\t\t  \r\n\t\t},\r\n\t\terror: function(data) {\r\n\t\t  console.log(data);\r\n\t\t}, \r\n\t\t complete: function () {\r\n\t\t\t$('#spinner-div').hide();\/\/Request is complete so hide spinner\r\n\t\t}\r\n\t    \r\n\t  });\r\n\t \r\n\t\t\r\n});\r\n\t\t\r\n\t\t\r\n\tfunction constructTable(selector,json) {\r\n             \r\n            \/\/ Getting the all column names\r\n            var cols = Headers(json, selector); \r\n  \r\n            \/\/ Traversing the JSON data\r\n            for (var i = 0; i < json.length; i++) {\r\n                var row = jQuery('<tr\/>');  \r\n                for (var colIndex = 0; colIndex < cols.length; colIndex++)\r\n                {\r\n                    var val = json[i][cols[colIndex]];\r\n                     \r\n                    \/\/ If there is any key, which is matching\r\n                    \/\/ with the column name\r\n                    if (val == null) val = \"\"; \r\n                        row.append(jQuery('<td\/>').html(val));\r\n                }\r\n                 \r\n                \/\/ Adding each row to the table\r\n                jQuery(selector).append(row);\r\n            }\r\n        }\r\n         \r\n        function Headers(json, selector) {\r\n            var columns = [];\r\n            var header = jQuery('<tr\/>');\r\n             \r\n            for (var i = 0; i < json.length; i++) {\r\n                var row = json[i];\r\n                 \r\n                for (var k in row) {\r\n                    if (jQuery.inArray(k, columns) == -1) {\r\n                        columns.push(k);\r\n                         \r\n                        \/\/ Creating the header\r\n                        header.append(jQuery('<th\/>').html(capitalizeFirstLetter(k)));\r\n                    }\r\n                }\r\n            }\r\n             \r\n            \/\/ Appending the header to the table\r\n            jQuery(selector).append(header);\r\n                return columns;\r\n        }\r\n  \r\n  function capitalizeFirstLetter(string){\r\n      return string.charAt(0).toUpperCase() + string.slice(1);\r\n}\r\n\r\n\t\r\n<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7fa9ade elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7fa9ade\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f220a90\" data-id=\"f220a90\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2a3e547 elementor-widget elementor-widget-shortcode\" data-id=\"2a3e547\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><!-- start Woody Code Snippets CSS and JS -->\n<style type=\"text\/css\">\n#spinner-div {\r\n  position: fixed;\r\n  width: 100%;\r\n  height: 100%;\r\n  top: 0;\r\n  left: 0;\r\n  text-align: center;\r\n  background-color: rgba(255, 255, 255, 0.8);\r\n  z-index: 2;\r\n}\r\n\r\n#loading-image {\r\n  position: absolute;\r\n  top: 500px;\r\n  left: 900px;\r\n  z-index: 100;\r\n}\r\n\r\n<\/style>\n<!-- end Woody Code Snippets CSS and JS -->\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Indicadores Materiais Acessos e Downloads por Ano Acessos e Downloads por Pa\u00edses<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"instituto":[],"class_list":["post-5939","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/pages\/5939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/comments?post=5939"}],"version-history":[{"count":48,"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/pages\/5939\/revisions"}],"predecessor-version":[{"id":11954,"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/pages\/5939\/revisions\/11954"}],"wp:attachment":[{"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/media?parent=5939"}],"wp:term":[{"taxonomy":"instituto","embeddable":true,"href":"https:\/\/www.bibliotecadigital.unicamp.br\/bd\/index.php\/wp-json\/wp\/v2\/instituto?post=5939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}