var options = {
    container: document.getElementById('myChart'),
    title: {
        text: "Most Common Girls' First Names In English"
    },
    subtitle: {
        text: "over the past 100 years"
    },
    data: [
        { name: 'Mary', count: 234000 },
        { name: 'Patricia', count: 211000 },
        { name: 'Jennifer', count: 178000 },
        { name: 'Elizabeth', count: 153000 },
        { name: 'Linda', count: 123000 }
    ],
    series: [{
        type: 'line',
        xKey: 'name',
        yKey: 'count'
    }],
    axes: [{
        type: 'category',
        position: 'bottom'
    }, {
        type: 'number',
        position: 'left'
    }],
    legend: {
        enabled: false
    }
};

var chart = agCharts.AgChart.create(options);

function useGridStyle1() {
    var gridStyle = [{
        stroke: 'gray',
        lineDash: [10, 5]
    }, {
        stroke: 'lightgray',
        lineDash: [5, 5]
    }];
    chart.axes[0].gridStyle = gridStyle;
    chart.axes[1].gridStyle = gridStyle;
    chart.performLayout();
}

function useGridStyle2() {
    var xGridStyle = [{
        stroke: 'red',
        lineDash: [3, 3]
    }];
    var yGridStyle = [{
        stroke: 'green',
        lineDash: [8, 3, 3, 3]
    }];
    chart.axes[0].gridStyle = xGridStyle;
    chart.axes[1].gridStyle = yGridStyle;
    chart.performLayout();
}

function useDefaultGridStyle() {
    var gridStyle = [{
        stroke: 'rgba(219, 219, 219, 1)',
        lineDash: [4, 2]
    }];
    chart.axes[0].gridStyle = gridStyle;
    chart.axes[1].gridStyle = gridStyle;
    chart.performLayout();
}
@@ -920,37 +920,39 @@
  5%5D%0A    %7D%5D;%0A    
-chart
+options
 .axes%5B0%5D.gridSty
@@ -963,37 +963,39 @@
  gridStyle;%0A    
-chart
+options
 .axes%5B1%5D.gridSty
@@ -1014,36 +1014,54 @@
 le;%0A    
-c
+agC
 hart
-.performLayout(
+s.AgChart.update(chart, options
 );%0A%7D%0A%0Afu
@@ -1249,37 +1249,39 @@
  3%5D%0A    %7D%5D;%0A    
-chart
+options
 .axes%5B0%5D.gridSty
@@ -1293,37 +1293,39 @@
 xGridStyle;%0A    
-chart
+options
 .axes%5B1%5D.gridSty
@@ -1345,36 +1345,54 @@
 le;%0A    
-c
+agC
 hart
-.performLayout(
+s.AgChart.update(chart, options
 );%0A%7D%0A%0Afu
@@ -1520,29 +1520,31 @@
     %7D%5D;%0A    
-chart
+options
 .axes%5B0%5D.gri
@@ -1567,21 +1567,23 @@
 le;%0A    
-chart
+options
 .axes%5B1%5D
@@ -1614,28 +1614,46 @@
     
-c
+agC
 hart
-.performLayout(
+s.AgChart.update(chart, options
 );%0A%7D

Fix "Axis Grid Lines" example.