Legend chart

author(s): Torstein Hønsi

by kzoon

HTML

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

JavaScript

$(function () {
    $('#container').highcharts({

        chart: {
            type: 'column',
           spacing: [0, 0, 0, 0], 
             backgroundColor: '#FCFFC5'
        },
        credits: {
            enabled: false
        },
        title: {
            text: ''
        },

        tooltip: {
            enabled: false
        },

        legend: {
            align: 'center',
            verticalAlign: 'middle'
        },

        xAxis: {
            categories: [],
            lineWidth: 0,
            tickLength: 0,
            labels: {
                enabled: false
            },
            title: {
                text: ''
            }
        },
        yAxis: {
            min: 0,
            max: 1,
            lineWidth: 0,
            tickLength: 0,
            gridLineWidth: 0,
            labels: {
                enabled: false
            },
            title: {
                text: ''
            }
        },
        series: [{
            type: 'line',
            data: []
        }, {
            data: []
        }, {
            type: 'area',
            data: []
        }]
    });
});