-
- {" "}
-
-
- Podział wpływów
- na kategorie
-
-
-
-
-
- {Object.values(["Kategoria", "Wartość"]).map(
- (x) => (
-
+
+
+ Podział wpływów
+ na kategorie
+
+
+
+
+
+ {Object.values(["Kategoria", "Wartość"]).map(
+ (x) => (
+
+ {getTranslations(x)}
+
+ )
+ )}
+
+
+
+ {Object.entries(currentDataset.income).map(
+ ([key, value], index) =>
+ parseFloat(value) > 0 && (
+
+
- {getTranslations(x)}
-
- )
- )}
-
-
-
- {Object.entries(currentDataset.income).map(
- ([key, value], index) =>
- parseFloat(value) > 0 && (
-
-
- {getTranslations(key)}
-
-
- {value} zł
-
-
+ {getTranslations(key)}
+
+
+ {value} zł
+
+
+ )
+ )}
+
+
+
+ Suma
+
+ {Object.values(currentDataset.income)
+ .reduce(
+ (a: Decimal, b: string) => a.add(b),
+ new Decimal(0)
)
- )}
-
-
-
- Suma
-
- {Object.values(currentDataset.income)
- .reduce(
- (a: Decimal, b: string) => a.add(b),
- new Decimal(0)
- )
- .toFixed(2)}{" "}
- zł
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {getPieChartDataset(
+ .toFixed(2)}{" "}
+ zł
+
+
+
+
+
+
+
+
+
+
+
+ (
- |
- ))}
-
-
-
-
-
-
-
-
-
-
-
+ ).income
+ }
+ paddingAngle={5}
+ cx="50%"
+ cy="50%"
+ >
+ {getPieChartDataset(
+ currentYear,
+ currentMonth
+ ).income.map((entry, index) => (
+ |
+ ))}
+
+
+
+
+
+
+
+
+
Opisane wpływy