It turns out that I am making some graphics for a page that I am building, everything is fine so far, but I need the drop-down menu, which has the graphic to see options such as: "view in full screen" , "print" etc, is all in English , I've tried to change it but I really have no idea what part of the code I should change to make it work as I want. I already searched the documentation , but I didn't find anything about that menu.
This is the code I have:
Highcharts.setOptions({
colors: ['#56A419', '#004887', '#f77d02', '#02f7ca', '#f7027c'],
chart: {
style: {
fontFamily: 'Comic Sans MS'
}
}
});
Highcharts.chart('container', {
title: {
text: 'Crecimiento de Ventas por Producto, 2016-2019'
},
subtitle: {
text: 'Fuente: Archivo Base'
},
yAxis: {
title: {
text: 'Número de Productos'
}
},
xAxis: {
accessibility: {
rangeDescription: 'Rango: 2016 al 2019'
},
categories: ['2016', '2017', '2018','2019']
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
credits: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: false
}
}
},
series: [{
name: 'Procesadores',
data: [43934, 52503, 57177, 89658]
}, {
name: 'GPUs',
data: [24916, 24064, 29742,89658]
}, {
name: 'Memorias RAM',
data: [11744, 17722, 16005,79304]
}, {
name: 'Fuentes de Poder',
data: [9847, 5978, 7988, 31169]
}, {
name: 'Tarjetas Madre',
data: [12908, 5948, 8105, 55948]
}],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
}
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
Here is an image of the menu I am referring to:
So my question is if it is possible to change the language of that menu since I need it in Spanish, thanks in advance
You can achieve what you want with the property
lang
like so:Documentation: https://api.highcharts.com/highcharts/lang