-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd20c05
commit da28505
Showing
6 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/app/(marketing)/profile/_components/CircularProgressBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client" | ||
|
||
import { ChartContainer } from "@/components/ui/Chart" | ||
import { RadialBar, RadialBarChart } from "recharts" | ||
|
||
const chartData = [{ experience: 1, fill: "hsl(var(--primary))" }] | ||
|
||
export const CircularProgressBar = () => { | ||
return ( | ||
<ChartContainer | ||
config={{}} | ||
className="-scale-x-100 absolute aspect-square min-h-56 rotate-90" | ||
> | ||
<RadialBarChart | ||
data={chartData} | ||
startAngle={0} | ||
endAngle={280} | ||
innerRadius={105} | ||
outerRadius={115} | ||
> | ||
<circle | ||
className="stroke-muted" | ||
cx={224 >> 1} | ||
cy={224 >> 1} | ||
r={103} | ||
strokeWidth={13} | ||
fill="none" | ||
/> | ||
<RadialBar dataKey="experience" cornerRadius={10} /> | ||
</RadialBarChart> | ||
</ChartContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters