Highcharts Demo

author(s): Torstein Hønsi

by Alagar Kamuthurai

HTML

<script src="https://code.highcharts.com/stock/2.1.9/highstock.js"></script>

<div id="container" style="width: 500px; height: 300px"></div>

JavaScript

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

        chart: {
            type: 'column',
           
        },
        title: {
            text: 'Auto rotation limit'
        },
        subtitle: {
            text: 'Short words means word-wrap makes sense'
        },
        xAxis: {
            type: 'category',
            labels: {
							style: {
              	whiteSpace: "nowrap",
                textOverflow: "ellipsis",
                width:20
              },
            }
        },
        series: [{
            showInLegend: false,
            data: [{
                name: "Pasta (no gluten)",
                y: 77
            }, {
                name: 'Rice (white & brown)',
                y: 50
            }, {
                name: 'Bread (white & brown)',
                y: 20
            }, {
                name: 'Eggs (chicken, duck & goose)BLUE SILVER ZJFLSKDJF LSKEJ FLSKJIO FIJ!)@SD:LFKSDJ :FLKSDJFL:SDJK FL:SDKJFS:DLK FJSL:FKJSEOFIJS OIJCOISOI',
                y: 48
            }, {
                name: 'Meat (cattle, fowl & fish)',
                y: 36
            }, {
                name: 'Vegetables',
                y: 15
            }, {
                name: 'Fruits',
                y: 57
            }]
        }]
    });
});