Отделил количетсво часов и краткое обозначение
This commit is contained in:
parent
96f15740d2
commit
54cf11feb7
@ -13,9 +13,9 @@
|
||||
position: 'bottom',
|
||||
formatter: function (val, opts) {
|
||||
if (opts.w.globals.series[opts.seriesIndex]) {
|
||||
return val + ": " + opts.w.globals.series[opts.seriesIndex] + 'ч.';
|
||||
return val + ": " + opts.w.globals.series[opts.seriesIndex] + ' ч.';
|
||||
} else {
|
||||
return val + ": " + "0ч."
|
||||
return val + ": " + " 0ч."
|
||||
}
|
||||
}
|
||||
}, noData: {
|
||||
@ -39,10 +39,10 @@
|
||||
for (let item in json) {
|
||||
for (let status in json[item]) {
|
||||
let chartElement = document.querySelector(`#${item}${status}`)
|
||||
chartElement.textContent = json[item][status] + 'ч.'
|
||||
chartElement.textContent = json[item][status] + ' ч.'
|
||||
}
|
||||
let chartElementSUM = document.querySelector(`#${item}SUM`)
|
||||
chartElementSUM.textContent = (json[item]['WO'] + json[item]['WA']).toFixed(0) + 'ч.'
|
||||
chartElementSUM.textContent = (json[item]['WO'] + json[item]['WA']).toFixed(0) + ' ч.'
|
||||
|
||||
let workedWO = json[item]['WO']
|
||||
let workedWA = json[item]['WA']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user