score:1

Accepted answer

yes. these are called plotbands. very much recommended to check out the highcharts api documentation. plenty of examples.

score:1

yes these are called plot bands,

you can configure plotbands as you want.

these can be configured easily

xaxis :{
plotbands:{
id: 'abc',
from: 0,
to:1,
color: '#cccccc'
}
}

this will set a plot band with that id from xaxis 0 to xaxis 1, the id will be useful for removing it later if wanted.

you can also add plot bands once the chart is completely rendered by using the method called addplotband();

chart.xaxis[0].addplotband({
    id: 'abc',
    from: 0,
    to:1,
    color: '#cccccc'
});

the same can be done for yaxis also.

please refer high hope this will help you.charts api documentation before you proceed.


Related Query