修改界面

master
夜笙歌 4 years ago
parent 45410919cf
commit 44aa424ce6

@ -103,7 +103,7 @@ $(() => {
targetBottom.targetArr = arr
xName = ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00']
}
targetBottom.reality = Number((data.map(val => val.rate).reduce((val1, val2) => val1 + val2, 0) / data.map(val => val.rate).length)*100).toFixed(2)
targetBottom.reality = Number((data.map(val => val.rate).reduce((val1, val2) => val1 + val2, 0) / data.map(val => val.rate).length)).toFixed(2)
targetBottom.total = data.map(val => val.qty).reduce((val1, val2) => val1 + val2, 0)
barChartAndLineChartFour({
xName: xName,

@ -158,8 +158,8 @@ $(() => {
console.log(data)
singleVerticalBarChart({
xName: data.map(val => val.name),
yData: [12, 20, 11, 30, 14, 80, 50],
}, document.getElementById("productionEfficiency"))
yData: data.map(val => val.qty),
}, document.getElementById("productionEfficiency"),-20)
})
// 成品入库统计
// autoUpdate(url + "/inStore3d", INTERVAL, data => {

@ -1497,7 +1497,7 @@ const multipleVerticalBarChartTwo = function (data, id) {
}
// 单个垂直柱状图
const singleVerticalBarChart = function (data, id) {
const singleVerticalBarChart = function (data, id,rotate=0) {
let charts = echarts.init(id);
if (!data) {
data = {
@ -1514,7 +1514,7 @@ const singleVerticalBarChart = function (data, id) {
top: "10%",
left: left(),
right: "5%",
bottom: "25%",
bottom: "15%",
// containLabel: true
},
dataZoom: [],
@ -1528,6 +1528,7 @@ const singleVerticalBarChart = function (data, id) {
axisLabel: {
color: "#fff",
fontSize: 14,
rotate: rotate,
},
},
yAxis: {

Loading…
Cancel
Save