MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getChartColor

Function getChartColor

apps/start/src/utils/theme.ts:11–13  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

9// export const theme = resolvedTailwindConfig.theme as Record<string, any>;
10
11export function getChartColor(index: number): string {
12 return chartColors[index % chartColors.length]?.main || chartColors[0].main;
13}
14
15export function getChartTranslucentColor(index: number): string {
16 return (

Callers 15

GscCtrBenchmarkFunction · 0.90
GscPositionChartFunction · 0.90
PageViewsChartFunction · 0.90
GscClicksChartFunction · 0.90
TooltipFunction · 0.90
GroupMemberGrowthFunction · 0.90
ChartFunction · 0.90
ChartFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected