diff --git a/src/app/indicadores/figures.ts b/src/app/indicadores/figures.ts index 825cc7a..7877a39 100644 --- a/src/app/indicadores/figures.ts +++ b/src/app/indicadores/figures.ts @@ -492,7 +492,12 @@ export function historyFigure( ): Figure { const x = series.map((s) => s.label); const layout = (y: string, values: (number | null)[]) => ({ - xaxis: { title: { text: xTitle }, type: 'category' as const }, + xaxis: { + title: { text: xTitle }, + type: 'category' as const, + categoryorder: 'array' as const, + categoryarray: x, + }, yaxis: { title: { text: y }, ...valueAxis(values) }, }); if (panel.kind === 'stack') {