рефакторинг показаний

This commit is contained in:
zakhy 2024-06-17 11:54:22 +07:00
parent 8f938b50e8
commit e87cc3c5d7

View File

@ -44,12 +44,13 @@
}
};
// Общие настройки для radialBar графиков
const commonRadialBarOptions = {
chart: {
type: 'radialBar',
height: '250px'
},
labels: ['т. смена ', 'пр. смена '],
series: [],
plotOptions: {
radialBar: {
size: undefined,
@ -235,8 +236,6 @@
const hourOptionsCircle_1 = {
...commonRadialBarOptions,
series: [],
labels: ['т. смена ', 'пр. смена '],
title: {
text: 'Y к-та %'
}
@ -244,8 +243,6 @@
const hourOptionsCircle_2 = {
...commonRadialBarOptions,
series: [],
labels: ['т. смена ', 'пр. смена '],
title: {
text: 'Y отсева %'
}
@ -253,7 +250,6 @@
const doubleOptionsCircle = {
...commonRadialBarOptions,
series: [],
labels: ['Y к-та', 'Y отсева'],
legend: {
...commonRadialBarOptions.legend,
@ -299,12 +295,7 @@
}, {
name: 'Предыдущая смена',
data: Object.values(response.average.previous_work_shift)
}], {
animate: {
duration: 500,
easing: 'easeinout'
}
})
}])
dailyScalesChart.updateSeries([{
name: 'Текущая смена',