()
| 12 | |
| 13 | // Utility function to generate random colors |
| 14 | const generateRandomColor = () => { |
| 15 | const letters = '0123456789ABCDEF'; |
| 16 | let color = '#'; |
| 17 | for (let i = 0; i < 6; i++) { |
| 18 | color += letters[Math.floor(Math.random() * 16)]; |
| 19 | } |
| 20 | return color; |
| 21 | }; |
| 22 | |
| 23 | const Label = ({ value }) => { |
| 24 | // Determine the color for the label |