DESKTOP-FUDKNA8\znjsz 6 meses atrás
pai
commit
8cf50b9cb9
1 arquivos alterados com 3 adições e 2 exclusões
  1. +3
    -2
      src/components/Chart/yieldOption.js

+ 3
- 2
src/components/Chart/yieldOption.js Ver arquivo

@@ -84,8 +84,9 @@ const dataSerie = {
};

export default (data) => {
title.text =
(100 * (+data.nowProduction / +data.targetProduction)).toFixed(0) + "%";
// title.text =
// (100 * (+data.nowProduction / +data.targetProduction)).toFixed(0) + "%";
title.text = (data.nowProduction || 0) + '片';
dataSerie.data[0].value = data.nowProduction;
dataSerie.data[1].value = data.targetProduction - data.nowProduction;
return {


Carregando…
Cancelar
Salvar