- Helper formatPayback con 12 casos cubiertos - Aplicado en RoiKpiBar, drawRoiKpiCards, csv-export - Auditoría WCAG: ratio 2.22:1, opción D (font-bold) para Etapa 3 - Adelanto: strings 'InQ ROI' y 'Powered by InQuality' en footers PDF - Threshold ROI: '1.000%' sin decimal - 455 tests verdes + 2 E2E Refs: sprints/sprint-1-5/ETAPA_2_PROMPT.md
86 lines
1.7 KiB
Plaintext
86 lines
1.7 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||
|
||
exports[`buildCostCompositionOption — estructura del objeto ECharts > snapshot: estructura completa del option del donut 1`] = `
|
||
{
|
||
"graphic": [
|
||
{
|
||
"left": "center",
|
||
"style": {
|
||
"fill": "#1e293b",
|
||
"fontFamily": "JetBrains Mono, monospace",
|
||
"fontSize": 13,
|
||
"fontWeight": "bold",
|
||
"text": "USD 1.200,00",
|
||
"textAlign": "center",
|
||
},
|
||
"top": "38%",
|
||
"type": "text",
|
||
},
|
||
],
|
||
"legend": {
|
||
"bottom": "2%",
|
||
"itemHeight": 12,
|
||
"itemWidth": 12,
|
||
"left": "center",
|
||
"textStyle": {
|
||
"color": "#475569",
|
||
"fontSize": 11,
|
||
},
|
||
},
|
||
"series": [
|
||
{
|
||
"avoidLabelOverlap": true,
|
||
"center": [
|
||
"50%",
|
||
"44%",
|
||
],
|
||
"data": [
|
||
{
|
||
"itemStyle": {
|
||
"color": "#F59845",
|
||
},
|
||
"name": "Costo directo",
|
||
"value": 1000,
|
||
},
|
||
{
|
||
"itemStyle": {
|
||
"color": "#94a3b8",
|
||
},
|
||
"name": "Costo indirecto (overhead)",
|
||
"value": 200,
|
||
},
|
||
],
|
||
"emphasis": {
|
||
"label": {
|
||
"fontSize": 13,
|
||
"fontWeight": "bold",
|
||
},
|
||
},
|
||
"itemStyle": {
|
||
"borderColor": "#fff",
|
||
"borderRadius": 4,
|
||
"borderWidth": 2,
|
||
},
|
||
"label": {
|
||
"fontSize": 11,
|
||
"formatter": [Function],
|
||
"show": true,
|
||
},
|
||
"labelLine": {
|
||
"length": 10,
|
||
"length2": 8,
|
||
},
|
||
"radius": [
|
||
"48%",
|
||
"68%",
|
||
],
|
||
"type": "pie",
|
||
},
|
||
],
|
||
"tooltip": {
|
||
"formatter": [Function],
|
||
"trigger": "item",
|
||
},
|
||
}
|
||
`;
|