Highcharts Demo
author(s): Torstein Hønsi
by anikettiwari
HTML
<script src="https://code.highcharts.com/stock/2.1.9/highstock.js"></script>
<div id="container" style=""></div>
JavaScript
$(function() {
$('#container').highcharts({
chart: {
type: 'column',
inverted: 'true'
},
title: {
text: 'Auto rotation limit'
},
subtitle: {
text: 'Short words means word-wrap makes sense'
},
xAxis: {
type: 'category',
labels: {
useHTML: true,
style: {
// width: 200,
textOverflow: 'ellipsis'
},
}
},
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
}]
}]
});
});