Skip to content

Commit

Permalink
feat: add label to y-axis for chart
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasackermn committed Jul 30, 2024
1 parent 146788c commit 64bab34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/home/ChartBox/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const Chart = (props: ChartProps) => {
orientation="left"
hideAxisLine
hideTicks
label={label}
labelClassName="fill-neutral-800 text-10 font-normal"
labelOffset={20}
numTicks={3}
tickComponent={(props) => <CustomTick {...props} />}
/>
Expand Down
2 changes: 1 addition & 1 deletion components/home/ChartBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function ChartBox(props: PropsType) {
<Chart
days={currentDays}
data={[...data]}
label="Number of Transactions"
label="Number of transactions"
/>
</div>
</div>
Expand Down

0 comments on commit 64bab34

Please sign in to comment.