lb vor 8 Monaten
Ursprung
Commit
d1212c8729
3 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. +1
    -1
      src/components/Modules/EnergyCostAnalysis/BadGas/index.jsx
  2. +1
    -1
      src/components/Modules/EnergyCostAnalysis/NatGas/index.jsx
  3. +3
    -1
      src/utils/energeChartOption.js

+ 1
- 1
src/components/Modules/EnergyCostAnalysis/BadGas/index.jsx Datei anzeigen

@@ -164,7 +164,7 @@ function getOptions(period, trend) {
}, },
}, },
series: { series: {
data: trend[period].map(item => item != null && (+item).toFixed(2)),
data: trend[period].map(item => item != null ? (+item).toFixed(2) : null),
type: "line", type: "line",
symbol: "circle", symbol: "circle",
symbolSize: 6, symbolSize: 6,


+ 1
- 1
src/components/Modules/EnergyCostAnalysis/NatGas/index.jsx Datei anzeigen

@@ -163,7 +163,7 @@ function getOptions(period, trend) {
}, },
}, },
series: { series: {
data: trend[period].map(item => item != null && (+item).toFixed(2)),
data: trend[period].map(item => item != null ? (+item).toFixed(2) : null),
type: "line", type: "line",
symbol: "circle", symbol: "circle",
symbolSize: 6, symbolSize: 6,


+ 3
- 1
src/utils/energeChartOption.js Datei anzeigen

@@ -101,7 +101,9 @@ export function getOptions(period, source, trend, options = {}) {
? null ? null
: (+item.qty).toFixed(2) : (+item.qty).toFixed(2)
) )
: trend[period].map(item => item != null && (+item).toFixed(2)),
: trend[period].map((item) =>
item != null ? (+item).toFixed(2) : null
),
type: "line", type: "line",
symbol: "circle", symbol: "circle",
symbolSize: 6, symbolSize: 6,


Laden…
Abbrechen
Speichern