--- title: Sparkline description: A small, simple chart without axes or coordinates that shows the general shape of data variation, typically used inline with text or in small spaces links: storybook: charts-sparkline--basic --- ## Usage ```tsx import { Chart, useChart } from "@chakra-ui/charts" import { Area, AreaChart } from "recharts" ``` ```tsx ``` ## Examples ### Bar Chart Sparklines can be made with bar charts. ### Line Chart Sparklines can also be made with line charts. ### Stock Here's a composition of a sparkline that shows stock prices. ### Stat Here's a composition of a sparkline that shows a SaaS dashboard stat. ### Gradient Use the `Chart.Gradient` component to create a gradient fill. ```tsx {4-7} ``` ### Reference To reference a specific value on the sparkline, use the `Reference` component from `recharts`. ### Interaction Here's an example that mimics the NPM download stats. ### Composition Here's a composition that shows a sparkline for a stock price.