Slope Chart

Before-and-after lines, green when rising and red when falling; hover to focus one.

Customer satisfaction by teamSample data
Q1Q4Support 6281 ▲ 19Onboarding 7177 ▲ 6Billing 7458 ▼ 16Delivery 5569 ▲ 14Mobile app 6864 ▼ 4Returns 4972 ▲ 23
Customer satisfaction by team
TeamQ1Q4
Support6281
Onboarding7177
Billing7458
Delivery5569
Mobile app6864
Returns4972

Edit with AIPro

Describe a change to Slope Chart and get the updated code. The live preview above stays as the original.

Quality report

Kinetiq Verified
  • Loads cleanly

    No errors on phone and desktop screens.

  • Fits a phone screen

    No sideways scrolling at 375 px wide.

  • No serious accessibility problems

    Passed the axe-core WCAG 2.1 A/AA check.

Size (gzipped)
1.8 KB
Extra packages
motion
Reduced motion
Respected

Tested automatically in Chrome 158.0.8127.36 with axe-core 4.14.1. Automated tools catch only part of all accessibility problems, so treat this as a solid minimum, not a full audit.

Installation

One command

Adds the file to components/ui/slope-chart.tsx and installs motion for you.

$ npx kinetiq-ui login
$ npx kinetiq-ui add slope-chart

Run login once. It needs a free account, because the code is for signed-in users only. Get your token.

Or do it by hand

  1. Install the dependencies

    $ npm i motion lucide-react
  2. Sign in, open the Code tab above and copy it into components/ui/slope-chart.tsx

  3. Use it

    The file exports the component and a Demo showing typical usage. Import whichever you need.