@scompliance,
You can get the axis properties like minimum, maximum, etc. in useEffect hook as show in the code-snippet below.
useEffect(() => {
chart.axisX[0].addTo('stripLines', {
startValue: chart.axisX[0].get('minimum'),
endValue: chart.axisX[0].get('maximum'),
color: 'rgba(221, 160, 221, 0.1)',
});
}, []);
You can add stripline as plotarea background once you have access to axis range properties. Please take a look at this Stackblitz for an example of the same.
—
Vishwas R
Team CanvasJS