+
+
+
+ {dataWithPercentages.map((entry, index) => (
+ |
+ ))}
+
+ [
+ numeral(value).format('$0,0.00'),
+ `${props.payload.id}`,
+ ]}
+ contentStyle={{
+ backgroundColor: '#170202',
+ borderColor: '#ccc',
+ borderRadius: '5px',
+ padding: '5px',
+ }}
+ itemStyle={{ color: '#fff' }}
+ />
+
+
+ {/* Custom Legend */}
+
+ {dataWithPercentages.map((item, index) => (
+
+
+
{`${item.id}: ${item.percentage}%`}
+
+ ))}
+
+
+