feat(tea): pestaña Evolución y paleta con el verde de ISSSTELEON
- Pestaña Evolución (solo TEA), entre Resumen y Seguimiento: una figura por indicador con todos los periodos publicados, mensual o semestral. Barras apiladas para C2, línea con intervalo de confianza para C1 y mediana con cuartiles para C3r. Los periodos suprimidos se sombrean, no se dibujan como cero. - Paleta: verde #A8C243 y rojo ladrillo #B8433A, comprobados para daltonismo. Las líneas usan un verde más oscuro sobre fondo claro. - «Sin EEG» conserva su color en M21 y M22. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,10 +3,12 @@ import { Tema } from './indicadores.models';
|
||||
// Matches src/styles.scss: interface tokens are the source of these candidates,
|
||||
// not a certified brand guide. Published semantic colours always take priority.
|
||||
export const C2_PALETTE = Object.freeze({
|
||||
series: Object.freeze(['#7184A2', '#A4B88A', '#D0B778', '#B78B8E']),
|
||||
// ISSSTELEON green and a brick red dark enough to stay apart from it with red-green colour blindness.
|
||||
series: Object.freeze(['#A8C243', '#B8433A', '#7184A2', '#D0B778']),
|
||||
states: Object.freeze({ null: '#8A9199', noData: '#C9CDD2', suppressed: '#4B4949' }),
|
||||
claro: Object.freeze({ background: '#FFFFFF', text: '#081839', grid: '#E4E7E9', outline: '#BCC6D1' }),
|
||||
oscuro: Object.freeze({ background: '#081839', text: '#FFFFFF', grid: '#53647F', outline: '#53647F' }),
|
||||
// line: the green for thin marks; the brand green itself is too light to read as a line on white.
|
||||
claro: Object.freeze({ background: '#FFFFFF', text: '#081839', grid: '#E4E7E9', outline: '#BCC6D1', line: '#6A8000' }),
|
||||
oscuro: Object.freeze({ background: '#081839', text: '#FFFFFF', grid: '#53647F', outline: '#53647F', line: '#A8C243' }),
|
||||
});
|
||||
export function c2Theme(tema: Tema) { return C2_PALETTE[tema]; }
|
||||
export function c2Color(published: string | undefined, index: number): string {
|
||||
|
||||
Reference in New Issue
Block a user