feat(indicadores): dashboard interactivo multidominio y seguimiento CaCu
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { IndicadorDatos, PlotlyFigure } from './indicadores.models';
|
||||
|
||||
// Synthetic counts and names; the shape mirrors the published two-ring contract.
|
||||
export function donutFixture(): { figure: PlotlyFigure; data: IndicadorDatos } {
|
||||
return {
|
||||
figure: { data: [
|
||||
{ type: 'pie', legendgroup: 'categorias', name: '2025-S2', labels: ['A', 'B', 'C'], values: [6, 3, 1],
|
||||
hole: 0.62, sort: false, domain: { x: [0, 1], y: [0, 1] }, marker: { colors: ['red', 'blue', 'green'] } },
|
||||
{ type: 'pie', legendgroup: 'grupos', name: '2025-S2, grupos', labels: ['G1', 'G2'], values: [6, 4],
|
||||
hole: 0.55, sort: false, domain: { x: [0.19, 0.81], y: [0.19, 0.81] }, marker: { colors: ['gray', 'black'] } },
|
||||
], layout: { annotations: [{ x: 0.5, y: 0.5, xref: 'paper', yref: 'paper', showarrow: false, text: '<b>10</b>' }] } },
|
||||
data: { id: 'i1', contrato: 'C2', tipo_periodo: 'semestre', periodos: ['2025-S2'],
|
||||
categorias: { A: { etiqueta: 'A', grupo: 'g1' }, B: { etiqueta: 'B', grupo: 'g2' }, C: { etiqueta: 'C', grupo: 'g2' } },
|
||||
grupos_de_categoria: { g1: 'G1', g2: 'G2' },
|
||||
filas: ['A', 'B', 'C'].map((categoria, orden) => ({ periodo: '2025-S2', grupo: 'TOTAL', estrato: null,
|
||||
categoria, orden, n: [6, 3, 1][orden], suprimido: 0 })) },
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user