Align axis title to high

Description

The following code shows how to align axis title to high.

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 () {<!-- ww  w .  j  ava 2 s  . c  o m-->
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Population (millions)',
                align: 'high'
            },
            labels: {
                overflow: 'justify'
            }
        },
        series: [{
            name: 'Year 1800',
            data: [107, 131, 65, 293, 2]
        }, {
            name: 'Year 1900',
            data: [133, 56, 947, 1408, 6]
        }, {
            name: 'Year 2008',
            data: [973, 14, 4054, 732, 34]
        }]
    });
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 800px; margin: 0 auto"></div>

</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Axis »




Axis
Axis Data
Axis Label
Axis Plot
Axis Tick
Axis Title