Launch sale — 60% off Pro
Contact
ChartLine

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React A multiple line chart

A React line chart comparing multiple data series with distinct colors for desktop and mobile trends using shadcn/ui and Recharts

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Comparing trends side-by-side reveals insights single metrics hide. This React line chart displays desktop and mobile data as two distinct lines with different colors, making it easy to compare patterns and spot where one outperforms the other. Built with shadcn/ui and Recharts with monotone interpolation, both series share the same X-axis and Y-scale, enabling direct visual comparison. The tooltip shows both values simultaneously on hover. Perfect for comparing platforms (web vs mobile), user segments (free vs paid), time periods (this year vs last year), or any paired metrics where relative performance matters.

Pattern created by @haydenbleasel

Installation

Questions you might have