const chart = Highcharts.chart('container', {
chart: {
type: 'column',
marginTop: 70
},
accessibility: {
screenReaderSection: {
beforeChartFormat: '<h1>{chartTitle}</h1><p>Interactive bar chart showing total and detailed fruit consumption for 3 persons, with each person\'s total shown as a stacked bar composed of different colors to represent various fruits. Ted consumed 12 units, with a preference for blueberries, Øystein had the most at 13 units with a preference for mangoes, and Marita had 11 units, favoring strawberries.</p><p>There is 1 X axis showing persons, and 1 Y axis showing units of fruits consumed.</p><p>Use tab key to move between chart sections. Use left/right arrow keys to move between bars on the X axis. When on the bars, use the Enter key for more detail, and Backspace for less.</p><p>Sounds play as you navigate the bars. Higher pitched tones indicate higher values.</p>',
afterChartFormat: ''
},
landmarkVerbosity: 'disabled'
},
lang: {
accessibility: {
svgContainerLabel: '',
chartContainerLabel: ''
}
},
exporting: {
enabled: false
},
credits: {
enabled: false
},
title: {
text: 'Total fruit consumption',
align: 'left'
},
xAxis: {
categories: ['Ted', 'Øystein', 'Marita'],
accessibility: {
description: 'Persons'
}
},
yAxis: {
title: {
text: 'Fruits'
},
stackLabels: {
enabled: true
},
reversedStacks: false
},
plotOptions: {
column: {
stacking: 'normal'
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
reversed: true
},
tooltip: {
pointFormat: '<b><span style="color:{point.color}">●</span> {point.y}...
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.