Skip to content

Commit d96f9da

Browse files
committed
Added more chart colours
1 parent b3a914c commit d96f9da

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

apps/webapp/app/components/code/QueryResultsChart.tsx

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { Chart } from "~/components/primitives/charts/ChartCompound";
55
import { Paragraph } from "../primitives/Paragraph";
66
import type { AggregationType, ChartConfiguration } from "./ChartConfigPanel";
77

8-
// Color palette for chart series
8+
// Color palette for chart series - 30 distinct colors for large datasets
99
const CHART_COLORS = [
10-
"#7655fd", // Primary purple
10+
// Primary colors
11+
"#7655fd", // Purple
1112
"#22c55e", // Green
1213
"#f59e0b", // Amber
1314
"#ef4444", // Red
@@ -17,6 +18,28 @@ const CHART_COLORS = [
1718
"#14b8a6", // Teal
1819
"#f97316", // Orange
1920
"#6366f1", // Indigo
21+
// Extended palette
22+
"#84cc16", // Lime
23+
"#0ea5e9", // Sky
24+
"#f43f5e", // Rose
25+
"#a855f7", // Fuchsia
26+
"#eab308", // Yellow
27+
"#10b981", // Emerald
28+
"#3b82f6", // Blue
29+
"#d946ef", // Magenta
30+
"#78716c", // Stone
31+
"#facc15", // Gold
32+
// Additional distinct colors
33+
"#2dd4bf", // Turquoise
34+
"#fb923c", // Light orange
35+
"#a3e635", // Yellow-green
36+
"#38bdf8", // Light blue
37+
"#c084fc", // Light purple
38+
"#4ade80", // Light green
39+
"#fbbf24", // Light amber
40+
"#f472b6", // Light pink
41+
"#67e8f9", // Light cyan
42+
"#818cf8", // Light indigo
2043
];
2144

2245
function getSeriesColor(index: number): string {

0 commit comments

Comments
 (0)