File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
apps/webapp/app/components/code Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ import { Chart } from "~/components/primitives/charts/ChartCompound";
55import { Paragraph } from "../primitives/Paragraph" ;
66import type { AggregationType , ChartConfiguration } from "./ChartConfigPanel" ;
77
8- // Color palette for chart series
8+ // Color palette for chart series - 30 distinct colors for large datasets
99const 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
2245function getSeriesColor ( index : number ) : string {
You can’t perform that action at this time.
0 commit comments