I am using AM charts 4, I have a chart with a value axis (y) and a date axis (x), which has a line series and a column series. You can see a copy of it here: https://stackblitz.com/edit/vue-8hpoeo6q
It works as expected and looks like this:

The config/data and chart initialization for this chart looks like this:
const xAxis = {
type: 'DateAxis',
title: {
text: 'Date',
},
dataFields: {
category: 'date',
},
};
const yAxis = {
type: 'ValueAxis',
title: {
text: 'Score',
},
min: 0,
max: 25,
calculateTotals: true,
};
const scoreSeries = {
type: 'LineSeries',
name: 'Scores',
stroke: '#328170',
strokeWidth: 3,
dataFields: {
valueY: 'score',
dateX: 'date',
},
bullets: [
{
type: 'Bullet',
children: [
{
type: 'CircleBullet',
width: 30,
height: 30,
},
],
},
],
};
const eventSeries = {
type: 'ColumnSeries',
name: 'Events',
fill: '#000',
stroke: '#000',
stacked: false,
clustered: false,
dataFields: {
valueY: 'eventScore',
dateX: 'eventDate',
},
};
const data = [
{
score: 30,
date: '2025-04-30',
},
{
score: 22,
date: '2025-05-02',
},
{
score: 17,
date: '2025-05-08',
},
{
score: 8,
date: '2025-05-14',
},
{
eventScore: 10,
eventDate: '2025-05-02',
},
{
eventScore: 10,
eventDate: '2025-05-08',
},
{
redScore: 20,
colourDate: '2025-04-30',
},
{
yellowScore: 15,
colourDate: '2025-04-30',
},
{
greenScore: 5,
colourDate: '2025-04-30',
},
];
am4core.createFromConfig(
{
data: data,
xAxes: [xAxis],
yAxes: [yAxis],
series: series,
},
'chart',
am4charts.XYChart
);
Now what I would like to do is add a stacked bar which spans the entire full width of the chart and sits behind the existing line and column series.
I added some new series for each chunk of the stack:
const redSeries = {
type: 'ColumnSeries',
name: 'Red',
fill: '#FF0000',
stroke: '#FF0000',
stacked: true,
clustered: false,
columns: {
template: {
width: am4core.percent(100),
},
},
dataFields: {
valueY: 'redScore',
valueYShow: 'totalPercent',
dateX: 'colourDate',
},
};
const yellowSeries = {
type: 'ColumnSeries',
name: 'Yellow',
fill: '#FFFF00',
stroke: '#FFFF00',
stacked: true,
clustered: false,
columns: {
template: {
width: am4core.percent(100),
},
},
dataFields: {
valueY: 'yellowScore',
valueYShow: 'totalPercent',
dateX: 'colourDate',
},
};
const greenSeries = {
type: 'ColumnSeries',
name: 'Green',
fill: '#008000',
stroke: '#008000',
stacked: true,
clustered: false,
columns: {
template: {
width: am4core.percent(100),
},
},
dataFields: {
valueY: 'greenScore',
valueYShow: 'totalPercent',
dateX: 'colourDate',
},
};
I added the new series to my series array:
const series = [
redSeries,
yellowSeries,
greenSeries,
scoreSeries,
eventSeries,
];
And I added some new data items with the required properties:
const data = [
rest of data...,
{
redScore: 20,
colourDate: '2025-04-30',
},
{
yellowScore: 15,
colourDate: '2025-04-30',
},
{
greenScore: 5,
colourDate: '2025-04-30',
},
];
The stackblitz for this one is: https://stackblitz.com/edit/vue-b9kspsqj
Now the chart looks like this:

First issue is the new stack isn’t a stack – all three bars are there but they are directly on top of each other and only the last one defined shows.
Secondly, is it possible to have the stack fill the entire with of the chart? I tried adding a template width for the three colour series, like this:
const redSeries = {
rest of series config...,
'template': {
'width': am4core.percent(100),
},
But this just makes the column take up 100% of the cell, not the entire chart. How can I fix the stacking, and make the stack take up the full width of the chart? Should I add another axis which isn’t a date axis, a category axis with just a single category perhaps?