disable animations for better performance

This commit is contained in:
Erikas 2024-07-11 20:32:12 +03:00
parent 212cde5a5a
commit 3a0fe29ede

View File

@ -1,4 +1,15 @@
// Define a set of colors to be used for the charts Highcharts.setOptions({
chart: {
animation: false
},
plotOptions: {
series: {
animation: false
}
}
});
var colors = Highcharts.getOptions().colors; var colors = Highcharts.getOptions().colors;
function getLineChartOptions(title, description, unit, maxY = null) { function getLineChartOptions(title, description, unit, maxY = null) {