Skip to content

Commit

Permalink
fix: cystom analytics bar graph index alignment (#2737)
Browse files Browse the repository at this point in the history
  • Loading branch information
1akhanBaheti authored Nov 9, 2023
1 parent a6567bb commit 96862e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/components/analytics/custom-analytics/graph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const AnalyticsGraph: React.FC<Props> = ({ analytics, barGraphData, param
<text
x={0}
y={datum.y}
textAnchor="end"
textAnchor={`${barGraphData.data.length > 7 ? "end" : "middle"}`}
fontSize={10}
fill="rgb(var(--color-text-200))"
className={`${barGraphData.data.length > 7 ? "-rotate-45" : ""}`}
Expand Down

0 comments on commit 96862e0

Please sign in to comment.