Change pie chart colors

This commit is contained in:
Brandon Presley 2023-10-28 15:18:47 +13:00
parent 589efb56bd
commit b4154b336f
1 changed files with 7 additions and 8 deletions

View File

@ -12,14 +12,13 @@ export default function AppPieChart({ options }: { options: Option[] }) {
const { colors } = useTheme(); const { colors } = useTheme();
const pieChartColors = [ const pieChartColors = [
"#1f77b4", // Blue "#FF7F50", // Coral
"#ff7f0e", // Orange "#1E90FF", // Dodger Blue
"#2ca02c", // Green "#32CD32", // Lime Green
"#d62728", // Red "#BA55D3", // Medium Orchid
"#9467bd", // Purple "#FFD700", // Gold
"#8c564b", // Brown "#48D1CC", // Medium Turquoise
"#e377c2", // Pink "#FF69B4", // Hot Pink
"#7f7f7f", // Gray
]; ];
const data = options.map((option, index) => ({ const data = options.map((option, index) => ({