I thus didn't expect any problems in making a simple pie-chart, but I can't for the life of me get it to work (ie. to show a chart at all). I stripped the code down to the bare essentials:
Code: Select all
var minserie=[{
name: "Sektor",
data:[
{ name: "Administrasjon",
y: 7.6 },
{ name: "Annet",
y: 3.8 },
{ name: "Barnehager",
y: 10.9 },
{ name: "Helse/pleie/omsorg",
y: 38.3 },
{ name: "Samferdsel og teknikk",
y: 4.9 },
{ name: "Undervisning",
y: 34.5 }
]
}];
Highcharts.merge(true, options, {
chart: {
type: 'pie'
},
title: {text:"Andel årsverk i ulike sektorer"},
subtitle: {text: "Tall per 1.12.2016"},
plotOptions: {
series: {
animation:true,
}
},
series: minserie,
credits: {
enabled: true,
text: 'Our site',
href: 'www.oururl.no/'
}
});
I can't get this to produce a chart i Highcharts Cloud. If i use the export code to html function in Cloud and export the code to jsfiddle, it works fine: https://jsfiddle.net/RuneS/797rcLxn/1/