Category xAxis

by Valentin Radulescu

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        title: {
            text: 'Line Chart With Visualization I'
        },
        legend: {
            align: 'bottom',
            symbolWidth: 0,
            symbolPadding: 10
        },
        plotOptions: {
            series: {
                marker: {
                    radius: 5,
                    symbol: 'circle'
                }
            }
        },
        xAxis: {
            categories: ['Jan', 'Apr', 'Jul', 'Oct']
        },
        series: [{
            name: 'Apple',
            data: [29.9, 39.9, 9.9, 9.9]
        }, {
            name: 'Microsoft',
            data: [99.9, 19.9, 19.9, 49.9]
        }, {
            name: 'Google',
            data: [10.9, 42.9, 17.9, 2.9]
        }]
    });
});