// ─── Plugin: Sello de agua ──────────────────────────────────────────────── Chart.register({ id: 'brandPlugin', afterDraw(chart) { const ctx = chart.ctx; const {left, top, width, height} = chart.chartArea; ctx.save(); ctx.globalAlpha = 0.18; ctx.font = `bold ${Math.round(Math.min(width, height) * 0.13)}px Arial`; ctx.fillStyle = '#1a3a5c'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; const cx = left + width / 2; const cy = top + height / 2; ctx.translate(cx, cy); ctx.rotate(-Math.PI / 6); ctx.fillText('Energías Futuro', 0, 0); ctx.restore(); } }); // ────────────────────────────────────────────────────────────────────────── const CONFIG = { // ── ENCABEZADO ──────────────────────────────────────────────── fechaActualizacion: "28 de mayo 2026", fuenteDatos: "Desarrollado por Rodrigo Salcedo Campino. Fuentes: Energías Futuro, SEC, AVEC, ANAC, Ministerio de Energía Chile, Ministerio de Transporte, Desarrollo Territorial", // ── KPIs PRINCIPALES ───────────────────────────────────────── kpis: { ventasAnuales: { valor: "37.613", subtitulo: "Ventas EVs 2025", detalle: "Todos los tipos", variacion: "▲ +99% vs 2024" }, penetracion: { valor: "18,3%", subtitulo: "Penetración Abr-2026", detalle: "Del mercado total", variacion: "▲ +4,5 pp vs Dic-2025" }, cargadores: { valor: "6.996", subtitulo: "Cargadores Acumulados", detalle: "Total 2018–2026", variacion: "▲ +95% vs 2024" }, energiaMW: { valor: "217,6 MW",subtitulo: "Energía Instalada", detalle: "Capacidad total red de carga", variacion: "▲ +44% vs 2024" }, instalaciones: { valor: "3.943", subtitulo: "Instalaciones Únicas", detalle: "Ubicaciones de carga", variacion: "▲ +99% vs 2024" }, ratioEV: { valor: "~14,5x", subtitulo: "EVs / Cargador (2026)", detalle: "Ratio presión infra.", variacion: "⚠ Brecha en crecimiento" }, }, // ── VENTAS POR TECNOLOGÍA (hoja "EV NO y Enchu. Total Venta") ─ // Fuente: col BEV, PHEV+PEREV, E-BUSES, E-TRUCKS, MHEV, HEV-EREV // Desde 2023 datos son mensuales → sumar por año antes de actualizar ventas: { labels: ["2017","2018","2019","2020","2021","2022","2023","2024","2025","2026*"], BEV: [ 125, 129, 217, 157, 556, 1295, 1596, 4272, 5512, 3298], PHEV: [ 15, 68, 85, 79, 300, 474, 495, 1124, 3239, 2925], EBUS: [ 3, 105, 329, 378, 52, 349, 1427, 309, 2009, 268], ETRUCK: [ 0, 1, 0, 0, 21, 65, 40, 129, 107, 24], HEV: [ 400, 866, 850, 696, 1796, 2552, 4252, 6289,10017, 5376], MHEV: [ 0, 0, 38, 80, 696, 2583, 3145, 6778,16729, 7203], }, // ── PENETRACIÓN DE MERCADO (hoja "Evolucion tipos Vehiculos") ─ // Formato etiqueta: "Mes-Año" · 2026* = enero–abril penetracion: { labels: ["Dic-18","Dic-19","Dic-20","Dic-21","Dic-22","Dic-23","Dic-24", "Ene-25","Feb-25","Mar-25","Abr-25","May-25","Jun-25", "Jul-25","Ago-25","Sep-25","Oct-25","Nov-25","Dic-25", "Ene-26","Feb-26","Mar-26","Abr-26"], combustion: [99.7, 99.7, 99.6, 99.2, 98.4, 97.0, 93.6, 93.7, 91.3, 91.0, 90.5, 90.0, 89.5, 89.7, 89.4, 89.5, 89.2, 88.9, 88.6, 88.6, 87.4, 84.1, 81.7], mhevHev: [ 0.2, 0.2, 0.2, 0.6, 1.0, 2.2, 4.5, 4.4, 6.5, 6.7, 7.1, 7.4, 7.6, 7.8, 8.0, 7.9, 8.1, 8.4, 8.6, 8.5, 9.2, 11.3, 12.3], bevPhev: [ 0.1, 0.1, 0.2, 0.2, 0.6, 0.8, 1.9, 1.9, 2.2, 2.4, 2.4, 2.5, 2.9, 2.6, 2.6, 2.6, 2.7, 2.7, 2.8, 2.9, 3.4, 4.6, 6.1], }, // ── TOP MARCAS BEV + PHEV (hoja "Marcas de EVs") ───────────── // Período: Dic 2024 – Abr 2026 · 16 meses disponibles (Ene-2025 no disponible en fuente) // Para actualizar: agregar nuevos meses y restar el mes más antiguo si se desea ventana fija marcas: { labels: ["BYD","Volvo","Tesla","Changan","DFSK","JAC","Renault","Omoda|Jaecoo","Maxus","Chevrolet","Dong Feng","GWM"], BEV: [ 981, 1062, 1555, 34, 40, 425, 403, 137, 343, 336, 260, 142], PHEV: [1336, 580, 0, 1270, 406, 0, 0, 258, 0, 0, 0, 113], }, // ── CARGADORES POR TIPO (hoja "Cargadores EVs") ─────────────── // Desde 2023 datos son mensuales → sumar por año antes de actualizar cargadores: { labels: ["2018","2019","2020","2021","2022","2023","2024","2025","2026*"], CCPublico: [ 0, 73, 243, 0, 0, 321, 68, 197, 0], Electroterminal:[ 0, 6, 5, 9, 15, 60, 89, 131, 19], Privado: [ 3, 43, 38, 202, 283, 547, 873,1754, 434], Publico: [ 21, 55, 126, 89, 107, 288, 297, 509, 45], Otros: [ 0, 13, 0, 0, 12, 21, 0, 0, 0], }, // ── RATIO EVs POR CARGADOR (acumulado anual) ────────────────── // = Ventas EV acumuladas / Cargadores acumulados al cierre de cada año ratio: { labels: ["2018","2019","2020","2021","2022","2023","2024","2025","2026*"], valores: [48.7, 12.6, 6.5, 8.1, 11.0, 10.0, 11.4, 12.7, 14.5], }, // ── PERMISOS CIRCULACIÓN EV (hoja "Permiso de Ciruclacion Total") ────────── // Flota EV con permiso vigente por año · incluye todos los tipos de EV // Fuente: suma nacional de col EV por año · datos disponibles hasta 2024 permisosEV: { labels: ["2016","2017","2018","2019","2020","2021","2022","2023","2024"], flota: [ 276, 537, 1460, 2862, 2866, 5787, 8799, 16797, 33853], pctFlota: [ 0.00, 0.01, 0.01, 0.03, 0.03, 0.05, 0.07, 0.13, 0.26], crecYoY: [ null, 94.6, 171.9, 96.0, 0.1, 101.9, 52.0, 90.9, 101.5], flotaTotal: [9706826,10159436,10765208,11199466,10958572,11961386,12253960,12818856,13185614], }, // ── EVs POR REGIÓN — PERMISOS CIRCULACIÓN 2024 ─────────────── // (hoja "Permiso de Ciruclacion Total" → col EV, filtro año=2024, suma por región) // Actualizar anioRegiones y valores cuando lleguen datos nuevos anioRegiones: "2024", regiones: { labels: ["Metropolitana","Maule","Valparaíso","Biobío","O'Higgins","Coquimbo","Antofagasta","Los Lagos","Araucanía","Tarapacá","Los Ríos","Atacama","Ñuble","Magallanes","Aysén","Arica y P."], valores: [21971, 3482, 2515, 1131, 976, 918, 605, 460, 348, 303, 291, 247, 241, 201, 108, 56], }, // ── CRUCE REGIONAL: EVs ENCHUFABLES vs CONECTORES PÚBLICOS ──────────── // EVs: hoja "Permiso de Ciruclacion Total", col EV, filtro año=2024, suma por región // Conectores: hoja "Cargadores Publicos Ubicacion", conteo de filas por región (red pública SEC) // Ratio: EVs / conectores públicos por región (2024) cruceRegional: { labels: ["Metropolitana","Maule","Valparaíso","Biobío","O'Higgins","Coquimbo","Antofagasta","Los Lagos","Araucanía","Tarapacá","Los Ríos","Atacama","Ñuble","Magallanes","Aysén","Arica y P."], evs: [21971, 3482, 2515, 1131, 976, 918, 605, 460, 348, 303, 291, 247, 241, 201, 108, 56], conectores: [ 1353, 47, 123, 44, 64, 43, 34, 58, 39, 17, 15, 20, 20, 10, 21, 9], ratio: [ 16.2, 74.1, 20.4, 25.7, 15.2, 21.3, 17.8, 7.9, 8.9, 17.8, 19.4, 12.3, 12.1, 20.1, 5.1, 6.2], }, // Presión ordenada por ratio descendente (para gráfico de brechas) presionRegional: { labels: ["Maule","Biobío","Coquimbo","Valparaíso","Magallanes","Los Ríos","Tarapacá","Antofagasta","Metropolitana","O'Higgins","Atacama","Ñuble","Araucanía","Los Lagos","Arica y P.","Aysén"], ratio: [74.1, 25.7, 21.3, 20.4, 20.1, 19.4, 17.8, 17.8, 16.2, 15.2, 12.3, 12.1, 8.9, 7.9, 6.2, 5.1], }, // ── CRUCE E-BUSES vs CC T.PUBLICO + ELECTROTERMINAL (ACUMULADO) ────────── // E-buses: hoja "EV NO y Enchu. Total Venta" (cumsum anual) // Conectores: hoja "Conectores EVs Cargadores" (CC y ET, cumsum anual) // Ratio: E-buses acumulados / (CC+ET) acumulados ebusesCruce: { labels: ["2018","2019","2020","2021","2022","2023","2024","2025","2026*"], ebusCum: [105, 434, 812, 864, 1213, 2640, 2949, 4958, 5226], ccCum: [0, 146, 639, 639, 639, 1280, 1412, 2123, 2123], etCum: [0, 19, 29, 51, 82, 219, 774, 1381, 1411], ratio: [null, 2.6, 1.2, 1.3, 1.7, 1.8, 1.3, 1.4, 1.5], }, // ── MW CC T.PUBLICO + ELECTROTERMINAL vs E-BUSES ANUALES ───────────────── // MW: hoja "Energia MW Cargadores" (CC y ET, suma anual) // E-buses: hoja "EV NO y Enchu. Total Venta" (nuevos por año) ebusesMW: { labels: ["2018","2019","2020","2021","2022","2023","2024","2025","2026*"], ccMW: [0, 3.88, 12.05, 0, 0, 22.24, 4.78, 46.71, 0 ], etMW: [0, 0.96, 0.64, 1.29, 2.07, 7.10, 6.62, 8.11, 1.21], ebusAnual: [105, 329, 378, 52, 349, 1427, 309, 2009, 268], }, // ── CONECTORES ANUALES + ENERGÍA MW (hoja "Conectores EVs Cargadores" + "Energia MW Cargadores") ─ // Conectores: nuevos por año y tipo · MW: potencia total instalada por año conectoresmw: { labels: ["2018","2019","2020","2021","2022","2023","2024","2025","2026*"], ccPublico: [ 0, 146, 493, 0, 0, 641, 132, 711, 0], electroterminal:[ 0, 19, 10, 22, 31, 137, 555, 607, 30], privado: [ 3, 86, 52, 243, 307, 651, 989, 1803, 452], publico: [ 40, 122, 193, 135, 168, 371, 354, 698, 88], mwAnual: [0.85, 8.51, 16.62, 5.76, 10.43, 44.04, 24.80, 96.37, 10.27], kwPorConectorCum: [19.8, 21.2, 21.8, 20.0, 19.9, 21.8, 18.5, 21.1, 21.0], }, // ── CC + ELECTROTERMINAL ACUMULADO POR MACRO-REGIÓN (hasta 2026) ───────── // Fuente: hoja "Instal. Cargadores Regiones" (instalaciones acumuladas) // Nota: la fuente agrupa en 5 macro-regiones, no en 16 regiones individuales ebusesRegion: { labels: ["Valparaíso-Maule","Arica-Antofag.","Atacama-Coquimbo","Biobío-Los Lagos","Aysén-Magallanes"], cc: [52, 5, 2, 2, 0], et: [56, 13, 16, 5, 0], }, }; // ← FIN DEL BLOQUE CONFIG (no mover esta llave)
<!-- ZONA DE DATOS --> al inicio y guarda. El dashboard se refresca automáticamente.