I started by using push variables to the dataPoints:
to a dynamic line chart
And wanted to add dynamic striplines colors to mulitiple striplines e.g
color:strp1, color:strp2, color:strp3 as the color is inside a loop the variable is not working to place the color but work outside the loop.
x: 1,2,3,4
y: 2,7,8,9
mColorDigit=[green,red,blue,green,red]
e.g
loop{
var strp1 = (mColorDigit[0]);
var strp2 = (mColorDigit[1]);
var strp3 = (mColorDigit[2]);
loop end
};
————-
axisX:{
stripLines:[
{
startValue:1.5,
endValue:2.5,
color:strp1,
opacity: .2
},
{
startValue:2.5,
endValue:3.5,
color:strp2,
opacity: .2
},
{
startValue:3.5,
endValue:4.5,
color:strp3,
opacity: .2
}]