<?php

// Header
$idConvocatoria = $_SESSION['idConvocatoria'];
$rs = DB::Query("SELECT idConvocatoria, Titulo FROM convocatoria where idConvocatoria = $idConvocatoria");
$data = $rs->fetchAssoc();
$header_custom = "Escaños de ".$data['Titulo'];
$icon_custom = '';


/* POSIBLES PARAMETERS 
------------------------------------------------------------------------------------------------------------------
$settings["php_include"] = "MyCode/anychart.php";                 // File where PHP code is included
$settings["js_anychart"] = ["anychart-base.min.js","anychart-exports.min.js","anychart-ui.min.js"];  // AnyChart javascript libraries
$settings["theme"] = "pastel.min.js";                             // AnyChart Themes, color definition
$settings["language"] = "en-us.js";                               // AnyChart language interface
$settings["decimalsCount"] = 2;                                   // Default: number decimals
$settings["zeroFillDecimals"] = "false";                          // Default: fill decimal places to zero
$settings["decimalPoint"] = ".";                                  // Default: decimal point symbol
$settings["groupsSeparator"] = ",";                               // Default: thousands symbol

$settings["height"] = "";                                         // Default: Don't force size
$settings["id_container"] = "";                                   // Default: Don't force the id Contaner
-------------------------------------------------------------------------------------------------------------------
*/ 

// Parámetros para la construcción de los gráficos
$settings = array();
$settings["php_include"] = __DIR__."/semidonut.php";                 // File where PHP code is included
$settings["js_anychart"] = ["anychart-base.min.js"];  			         // AnyChart javascript libraries
$settings["theme"] = "";                                           // AnyChart Themes, color definition
$settings["language"] = "es-es.js";                                // AnyChart language interface
$settings["decimalsCount"] = 2;                                    // Default: number decimals
$settings["zeroFillDecimals"] = "false";                           // Default: fill decimal places to zero
$settings["decimalPoint"] = ",";                                   // Default: decimal point symbol
$settings["groupsSeparator"] = ".";                                // Default: thousands symbol

$settings["height"] = "180px";                                     // Default: Don't force size

require_once(__DIR__."/function_anychart.php"); // Snippet_anychart
$body_custom = snippet_anychart($settings);
