Line Charts Showcase
A comprehensive set of interactive Line Chart components for the Saudi National Design System (NDS / DGA).
Installation
pnpm dlx shadcn@latest add https://nds.aboalrejal.com/r/chart.jsonInteractive Preview & Code
Line Chart
Line Chart - Interactive
Showing total visitors for the last 3 months
Line Chart
Line Chart
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Linear
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Step
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Multiple
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Dots
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Dots Colors
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Custom Dots
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Label
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Line Chart
Line Chart - Custom Label
January - June 2024
Trending up by 5.2% this month
Showing total visitors for the last 6 months
Dynamic Props Usage
All chart components accept dynamic data and config props while maintaining default fallbacks:
import { ChartLineInteractive } from "@/registry/dga/charts/chart-line-interactive"
const customData = [
{ month: "Jan", value: 400 },
{ month: "Feb", value: 700 },
{ month: "Mar", value: 1200 },
]
const customConfig = {
value: {
label: "Metrics",
color: "var(--chart-1)",
},
}
export default function LineChartOverview() {
return (
<ChartLineInteractive
data={customData}
config={customConfig}
title="Annual Analytics Report"
description="Regional Statistics 2024"
trendingText="Trending up by 12.5% this period"
/>
)
}