I want to dynamically show background colors for each Series (Unique names) in gantt chart. Something like shown in below below screenshot
Image showing light grey and grey background for Development & Testing
I tried plotBands option on yAxis by referring this documentation
Codepen link for the demo code
yAxis:
{
uniqueNames: true,
plotBands: [
{
color: "#DCDCDC",
from: 0.5,
to: 1.5
},
{
color: "grey",
from: 1.5,
to: 2.5
}
],
},
With this i can set background if i know from and to values. But in my case these values are gonna be dyanamic.
So is there a way I can set background for series with uniqueNames = true ?