Highcharts.chart(‘container’, {

title: {
text: ”
},

/*subtitle: {
text: ‘Source: thesolarfoundation.com’
},*/

yAxis: {
title: {
text: ‘Valores expresados en %’
}
},

/*xAxis: {
accessibility: {
rangeDescription: ‘Range: 2010 to 2021’
}
},*/

xAxis: {
categories: [‘2010’, ‘2011’, ‘2012’, ‘2013’, ‘2014’, ‘2015’, ‘2016’, ‘2017’, ‘2018’, ‘2019’, ‘2020’, ‘2021’],
labels: {
rotation: 0
}
},

series: [{
name: ‘Participación del sector en el PIB*’,
data: [2.46, 2.36, 2.35, 2.48, 2.53, 2.60, 2.57, 2.51, 2.53, 2.61, 2.94, 2.87],
tooltip: {
valueSuffix: ‘%’
}
}],

responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: ‘horizontal’,
align: ‘center’,
verticalAlign: ‘bottom’
}
}
}]
}

});

Leer más