Highcharts.chart('container', {
chart: {
type: 'bar'
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
colors: ['#0097A9'],
title: {
text: ''
},
tooltip: {
formatter: function () {
return this.series.name +
'<br><b>' + this.y + '%</b>';
}
},
xAxis: {
categories: [
'Kept it as a spare',
'Gave it to a family member or friend',
'Sold it online to a phone', 'recycling/refurbishing company',
'Sold it online through a marketplace website',
'Sold it to a retail shop',
'Sold it/traded it in for a new phone to the mobile operator',
'Sold it/traded it in for a new phone to the device manufacturer',
'Sold it to a family member or friend',
'Recycled it in another way',
'I did not have a mobile phone before',
'Returned it to my employer',
'It was stolen',
'Lost it',
'Threw it away',
'Can not remember',
'Other'
]
},
yAxis: {
min: 0,
max: 40,
labels: {
format: '{value}%'
},
title: {
text: ''
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [
{
data: [
37,
22,
7,
5,
3,
3,
2,
2,
4,
1,
1,
1,
1,
4,
3,
4
]
}]
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.