demo D253
Series decomposition
Read a series as its trend, its seasonal rhythm and the residual, stacked to compare
type: 'decomposition', trend, seasonal, residual
Loading a live grid…
The configuration
'chart-types-decomposition': () => ({
rows: [], config: {},
foot: ['the same series, read four ways', 'trend, season and the residual, stacked'],
mount: mountGridCharts({
rows: decompRows(),
columns: [
{ field: 'month', title: 'Month', layout: { pin: 'start', width: 120 } },
{ field: 'observed', title: 'Observed', type: 'number' },
{ field: 'trend', title: 'Trend', type: 'number' },
{ field: 'seasonal', title: 'Seasonal', type: 'number' },
{ field: 'residual', title: 'Residual', type: 'number' },
],
columnsPer: 1, chartHeight: 400,
chartTypeModules: ['decomposition'],
charts: [{ type: 'decomposition', observed: 'observed', trend: 'trend', seasonal: 'seasonal', residual: 'residual', title: 'A series and its parts' }],
}),
}),