+ var axes = ["y","y2"];
+ var strokeStyles = [], lineWidths = [], drawGrid = [], stroking = [], strokePattern =[];
+ for(var index in axes) {
+ drawGrid[index] = g.getOptionForAxis("drawGrid",axes[index]);
+ if(drawGrid[index]) {
+ strokeStyles[index] = g.getOptionForAxis('gridLineColor',axes[index]);
+ lineWidths[index] = g.getOptionForAxis('gridLineWidth',axes[index]);
+ strokePattern[index] = g.getOptionForAxis('gridLinePattern',axes[index]);
+ stroking[index] = strokePattern[index] && (strokePattern[index].length >= 2);
+ }
+ }