Fix: Render bar chart axis labels in lighter color when dark theme applied (#2721)

This commit is contained in:
Ankush Deshmukh 2023-11-08 17:34:09 +05:30 committed by GitHub
parent 621d551c4a
commit da799b5a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")}