Skip to content

Commit

Permalink
Fix: Render bar chart axis labels in lighter color when dark theme ap…
Browse files Browse the repository at this point in the history
…plied (#2721)
AnkushD authored Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 621d551 commit da799b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/components/analytics/custom-analytics/graph/index.tsx
Original file line number Diff line number Diff line change
@@ -114,6 +114,7 @@ export const AnalyticsGraph: React.FC<Props> = ({ analytics, barGraphData, param
y={datum.y}
textAnchor="end"
fontSize={10}
fill="rgb(var(--color-text-200))"
className={`${barGraphData.data.length > 7 ? "-rotate-45" : ""}`}
>
{generateDisplayName(datum.value, analytics, params, "x_axis")}

0 comments on commit da799b5

Please sign in to comment.