Highcharts Demo

author(s): Torstein Hønsi

by moneisa123

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 80px;max-width:150px;"></div>

JavaScript

$(function () {
        $('#container').highcharts({
            chart: {
                type: 'bar'
            },
            title: {
                text: null
            },       
            tooltip:{
                formatter: function() {
                    return '<b>'+ this.y + '% </b>';
                }            
            },
            xAxis: {
                lineWidth: 0,                
                tickWidth: 0,
                tickLength: 0,
                gridLineWidth: 0,
                labels:
                {
                    enabled: false
                },                
                title: {
                    text: ''
                },                
            },
            yAxis: {
                lineWidth: 0,
                tickWidth: 0,
                tickLength: 0,
                gridLineWidth: 0,
                labels:
                {
                  enabled: false
                }, 
                title: {
                    text: ''
                }          
            },       
            legend: {
                enabled: false
            },
            credits: {
                enabled: false
            },
            plotOptions: {
                series: {
                    stacking: 'normal'
                }
            },
                series: [{
                name: 'John',
                data: [5]
            }, {
                name: 'Jane',
                data: [2]
            }, {
                name: 'Joe',
                data: [3]
            }]
        });
    });