diff --git a/static/css/style.css b/static/css/style.css
index aaadd46..3a85954 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -53,7 +53,10 @@ td {
}
.row-separator > * {
- border-right: 1px solid var(--gray);
+ border-bottom: 1px solid var(--gray);
+}
+.row-separator:last-child {
+ border-bottom: none;
}
::-webkit-scrollbar {
diff --git a/static/js/charts/mainIndexCharts.js b/static/js/charts/mainIndexCharts.js
index 7157621..9434b66 100644
--- a/static/js/charts/mainIndexCharts.js
+++ b/static/js/charts/mainIndexCharts.js
@@ -1,6 +1,6 @@
+// Время работы фабрики
+
(function () {
-
-
(function () {
let options = {
chart: {
@@ -83,7 +83,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
- position: 'right',
+ position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@@ -104,7 +104,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
- position: 'right',
+ position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@@ -125,7 +125,7 @@
},
colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
legend: {
- position: 'right',
+ position: 'bottom',
formatter: function (val, opts) {
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
}
@@ -202,6 +202,150 @@
})();
})();
+// Показания весов
+
+(function () {
+ (function () {
+ var options = {
+ series: [{
+ name: 'Текущая смена',
+ data: [1092, 424, 1892, 0, 0]
+ }, {
+ name: 'Предыдущая смена',
+ data: [2527, 1185, 4794, 168, 49]
+ }],
+ colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
+ chart: {
+ type: 'bar',
+ height: 350,
+ stacked: true,
+ toolbar: {
+ show: true
+ },
+ zoom: {
+ enabled: true
+ }
+ },
+ responsive: [{
+ breakpoint: 480,
+ options: {
+ legend: {
+ position: 'bottom',
+ offsetX: -10,
+ offsetY: 0
+ }
+ }
+ }],
+ plotOptions: {
+ bar: {
+ horizontal: false,
+ dataLabels: {
+ total: {
+ enabled: true,
+ style: {
+ fontSize: '13px',
+ fontWeight: 900
+ }
+ }
+ }
+ },
+ },
+ xaxis: {
+ type: 'category',
+ categories: ['Поз. 22', 'Поз. 13', 'Поз. 4', 'Поз 22,2', 'Поз 22, 3'],
+ },
+ legend: {
+ position: 'top',
+ },
+ fill: {
+ opacity: 1
+ },
+ title: {
+ text: 'тонн за сутки'
+ }
+ };
+
+ let chart = new ApexCharts(document.querySelector("#dailyScales"), options);
+ chart.render();
+
+ })();
+
+ (function () {
+ var options = {
+ series: [{
+ name: 'Месяц',
+ data: [2527, 1185, 4794, 168, 49]
+ }],
+ colors: ['var(--success)', 'var(--primary)', 'var(--danger)'],
+ chart: {
+ type: 'bar',
+ height: 350,
+ stacked: true,
+ toolbar: {
+ show: true
+ },
+ zoom: {
+ enabled: true
+ }
+ },
+ responsive: [{
+ breakpoint: 480,
+ options: {
+ legend: {
+ position: 'bottom',
+ offsetX: -10,
+ offsetY: 0
+ }
+ }
+ }],
+ plotOptions: {
+ bar: {
+ horizontal: false,
+ dataLabels: {
+ total: {
+ enabled: true,
+ style: {
+ fontSize: '13px',
+ fontWeight: 900
+ }
+ }
+ }
+ },
+ },
+ xaxis: {
+ type: 'category',
+ categories: ['Поз. 22', 'Поз. 13', 'Поз. 4', 'Поз 22,2', 'Поз 22, 3'],
+ },
+ legend: {
+ position: 'top',
+ },
+ fill: {
+ opacity: 1
+ },
+ title: {
+ text: 'тонн за месяц'
+ }
+ };
+ let chart = new ApexCharts(document.querySelector("#monthlyScales"), options);
+ chart.render();
+
+ })();
+ (function f() {
+ var options = {
+ chart: {
+ type: 'pie'
+ },
+ series: [54, 23],
+ labels: ['% к-та', '% отсева'],
+ title: {
+ text: 'Процентные показатели'
+ }
+ }
+
+ var chart = new ApexCharts(document.querySelector("#chart"), options);
+ chart.render();
+ })()
+})()
//
\ No newline at end of file
+//
+
+{/*
*/
+}
+{/* */
+}
+{/* */
+}
+{/* | Весовой контроль | */
+}
+{/* поз. 22 | */
+}
+{/* поз. 13 | */
+}
+{/* поз. 4 | */
+}
+{/* к-та % | */
+}
+{/* отсева % | */
+}
+{/* поз. 22,2 | */
+}
+{/* поз. 22,3 | */
+}
+{/*
*/
+}
+{/* */
+}
+{/* | т/ч | */
+}
+{/* т | */
+}
+{/* т/ч | */
+}
+{/* т | */
+}
+{/* т/ч | */
+}
+{/* т | */
+}
+{/*
*/
+}
+{/* */
+}
+{/* */
+}
+{/* */
+}
+{/* | текущая смена | */
+}
+{/* 299 | */
+}
+{/* 579 | */
+}
+{/* 70 | */
+}
+{/* 56 | */
+}
+{/* 460 | */
+}
+{/* 768 | */
+}
+{/* 65 | */
+}
+{/* 15 | */
+}
+{/* 144 | */
+}
+{/* 35 | */
+}
+{/*
*/
+}
+{/* */
+}
+{/* | пред. смена | */
+}
+{/* 391 | */
+}
+{/* 4686 | */
+}
+{/* 78 | */
+}
+{/* 902 | */
+}
+{/* 565 | */
+}
+{/* 6453 | */
+}
+{/* 69 | */
+}
+{/* 14 | */
+}
+{/* 144 | */
+}
+{/* 35 | */
+}
+{/*
*/
+}
+{/* */
+}
+{/* | сутки, т | */
+}
+{/* 579 | */
+}
+{/* 579 | */
+}
+{/* 56 | */
+}
+{/* 56 | */
+}
+{/* 768 | */
+}
+{/* 768 | */
+}
+{/* 75 | */
+}
+{/* 7 | */
+}
+{/* 0 | */
+}
+{/* 0 | */
+}
+{/*
*/
+}
+{/* */
+}
+{/* | месяц, т | */
+}
+{/* 142357 | */
+}
+{/* 142357 | */
+}
+{/* 57976 | */
+}
+{/* 57976 | */
+}
+{/* 230952 | */
+}
+{/* 230952 | */
+}
+{/* 62 | */
+}
+{/* 25 | */
+}
+{/* 9 | */
+}
+{/* -1 | */
+}
+{/*
*/
+}
+{/* */
+}
+{/*
*/
+}
\ No newline at end of file