Slope chart
Slope chart: Before and after on two axes: lines draw in, rank moves sit beside each value, and switching datasets slides every line to its new slope. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Slope chart
npx motion-ui-skill add slope-chartComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-merge
Source files
Slope chart
Before and after on two axes: lines draw in, rank moves sit beside each value, and switching datasets slides every line to its new slope.
Install
npx motion-ui-skill add slope-chart
Dependencies
clsxmotionreacttailwind-merge
Usage
"use client";
import { SlopeChart as SlopeChart } from "@/components/blocks/slope-chart";
export function Example() {
return (
<div className="p-6">
<SlopeChart />
</div>
);
}