Commit ac373be
committed
refactor: improve PieChartCard label rendering and type safety
- Updated the `renderCustomizedLabel` function in `PieChartCard` to use `PieLabelRenderProps` for better type safety and clarity.
- Simplified property extraction with default values for optional properties, enhancing code readability and maintainability.
These changes improve the overall quality of the PieChartCard component and ensure more robust label rendering.1 parent 454e0c7 commit ac373be
File tree
1 file changed
+12
-19
lines changed- src/features/analytics/ui/query-results/charts
1 file changed
+12
-19
lines changedLines changed: 12 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
| |||
0 commit comments