This commit is contained in:
lb
2024-01-04 17:03:00 +08:00
förälder 9d3c877628
incheckning d1212c8729
3 ändrade filer med 5 tillägg och 3 borttagningar

Visa fil

@@ -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,

Visa fil

@@ -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,

Visa fil

@@ -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,