Tooltip Charts Showcase
A comprehensive set of interactive Tooltip 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
Tooltip Chart
Tooltip - Default
Default tooltip with ChartTooltipContent.
Tooltip Chart
Tooltip - Advanced
Tooltip with custom formatter and total.
Tooltip Chart
Tooltip - Formatter
Tooltip with custom formatter .
Tooltip Chart
Tooltip - Icons
Tooltip with icons.
Tooltip Chart
Tooltip - Line Indicator
Tooltip with line indicator.
Tooltip Chart
Tooltip - No Indicator
Tooltip with no indicator.
Tooltip Chart
Tooltip - Custom label
Tooltip with custom label from chartConfig.
Tooltip Chart
Tooltip - Label Formatter
Tooltip with label formatter.
Tooltip Chart
Tooltip - No Label
Tooltip with no label.
Dynamic Props Usage
All chart components accept dynamic data and config props while maintaining default fallbacks:
import { ChartTooltipDefault } from "@/registry/dga/charts/chart-tooltip-default"
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 TooltipChartOverview() {
return (
<ChartTooltipDefault
data={customData}
config={customConfig}
title="Annual Analytics Report"
description="Regional Statistics 2024"
trendingText="Trending up by 12.5% this period"
/>
)
}