Set Align ticks to false

Description

The following code shows how to set Align ticks to false.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!-- w  ww .j a  v  a2  s .c o m-->
    $('#container').highcharts({
        chart: {
            alignTicks: false,
            type: 'line'
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        yAxis: [{
            title: {
                text: 'Primary Axis'
            }
        }, {
            title: {
                text: 'Secondary Axis'
            },
            gridLineWidth: 0,
            opposite: true
        }],
        series: [{
            data: [129.9, 71.5, 106.4, 19.2, 14.0, 76.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]

        }, {
            data: [129.9, 271.5, 306.4, 129.2, 444.0, 376.0, 435.6, 348.5, 216.4, 294.1, 35.6, 354.4],
            yAxis: 1

        }]
    });
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Axis »




Axis
Axis Data
Axis Label
Axis Plot
Axis Tick
Axis Title