Animated SVG Chart
spectrumui/animated-SVG-chartFreeComponent
component for the Animated SVG Chart
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/animated-SVG-chart.jsonSource
1"use client";23import { motion } from "framer-motion";45export const Chart = () => (6 <div7 className={8 "dark:shadow-none shadow-xl overflow-hidden rounded-lg border dark:border-neutral-800 border-neutral-300 w-[300px]"9 }10 >11 <div className={"absolute p-4 dark:text-neutral-100 text-neutral-900"}>12 <div className={"font-medium"}>This Month:</div>13 <div className={"font-bold text-3xl"}>+112%</div>14 </div>15 <div16 className={17 "dark:bg-neutral-950 bg-white dark:bg-grid-neutral-700 bg-grid-neutral-200"18 }19 >20 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 653 465">21 <motion.path22 transition={{ delay: 0.3 }}23 initial={{ opacity: 0 }}24 animate={{ opacity: 1 }}25 d="M0 460.694c6.6-3.13 19.8-11.272 33-15.654s19.8-2.814 33-6.257 19.8.365 33-10.955 19.8-32.07 33-45.643c13.2-13.572 19.8-16.08 33-22.22s19.8-5.647 33-8.48c13.2-2.832 19.8 5.901 33-5.68 13.2-11.582 19.8-37.759 33-52.226 13.2-14.468 19.8-28.263 33-20.112 13.2 8.15 19.8 59.038 33 60.863 13.2 1.824 19.8-43.269 33-51.741s19.8 24.488 33 9.38c13.2-15.11 19.8-81.825 33-84.923s19.8 54.76 33 69.432 19.8 34.912 33 3.931 19.8-148.752 33-158.837c13.2-10.086 19.8 111.943 33 108.409 13.2-3.535 19.8-97.635 33-126.082s19.8-7.562 33-16.152 26.4-21.438 33-26.798L653 465H0Z"26 className={"dark:fill-green-600 fill-purple-200"}27 />28 <motion.path29 transition={{ duration: 0.4 }}30 initial={{ pathLength: 0 }}31 animate={{ pathLength: 1 }}32 d="M0 460.694c6.6-3.13 19.8-11.272 33-15.654s19.8-2.814 33-6.257 19.8.365 33-10.955 19.8-32.07 33-45.643c13.2-13.572 19.8-16.08 33-22.22s19.8-5.647 33-8.48c13.2-2.832 19.8 5.901 33-5.68 13.2-11.582 19.8-37.759 33-52.226 13.2-14.468 19.8-28.263 33-20.112 13.2 8.15 19.8 59.038 33 60.863 13.2 1.824 19.8-43.269 33-51.741s19.8 24.488 33 9.38c13.2-15.11 19.8-81.825 33-84.923s19.8 54.76 33 69.432 19.8 34.912 33 3.931 19.8-148.752 33-158.837c13.2-10.086 19.8 111.943 33 108.409 13.2-3.535 19.8-97.635 33-126.082s19.8-7.562 33-16.152 26.4-21.438 33-26.798"33 fill="none"34 className={"dark:stroke-green-300 stroke-purple-500"}35 strokeWidth="4"36 />37 </svg>38 </div>39 </div>40);
What it pulls in
npm packages
Files it writes
More from spectrumui
All 182 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | spectrumui | Components | Free | no deps | |
| Alert demoalert-1 | spectrumui | Components | Free | 1 dep | |
| Alert 2alert-2 | spectrumui | Components | Free | no deps | |
| Alert 3alert-3 | spectrumui | Components | Free | 1 dep | |
| Alert 4alert-4 | spectrumui | Components | Free | 1 dep | |
| Animated Cardanimated-card | spectrumui | Components | Free | 1 dep · 2 files | |
| Animated Draweranimated-drawer | spectrumui | Components | Free | 4 deps | |
| Animated Switchanimated-switch | spectrumui | Components | Free | 1 dep |
