Loading...
Loading...
Compare original and translation side by side
src/components/import { AreaChart } from "@/components/AreaChart"@tremor/reactimport { AreaChart, Card } from "@tremor/react"text-tremor-contentdark:text-dark-tremor-contentsrc/components/import { AreaChart } from "@/components/AreaChart"@tremor/reactimport { AreaChart, Card } from "@tremor/react"text-tremor-contentdark:text-dark-tremor-contentpackage.jsonpackage.json<Card>grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6indexcategoriesvalueFormatterIntl.NumberFormatdark:dark-tremor-*"use client"<Card>grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6indexcategoriesvalueFormatterIntl.NumberFormatdark:dark-tremor-*"use client"// All charts expect this pattern
const chartdata = [
{ date: "Jan 23", Revenue: 2890, Costs: 2338 },
{ date: "Feb 23", Revenue: 2756, Costs: 2103 },
// ...
]
// index="date" → x-axis
// categories={["Revenue", "Costs"]} → data series// All charts expect this pattern
const chartdata = [
{ date: "Jan 23", Revenue: 2890, Costs: 2338 },
{ date: "Feb 23", Revenue: 2756, Costs: 2103 },
// ...
]
// index="date" → x-axis
// categories={["Revenue", "Costs"]} → data series| Use Case | Component |
|---|---|
| Trends over time | |
| Category comparison | |
| Part-of-whole | |
| Rankings | |
| Budget/threshold | |
| Combined metrics | |
| Inline sparkline | |
| Progress toward goal | |
| Uptime/status history | |
| 使用场景 | 组件 |
|---|---|
| 随时间变化的趋势 | |
| 类别对比 | |
| 占比情况 | |
| 排名展示 | |
| 预算/阈值展示 | |
| 组合指标 | |
| 内联迷你图 | |
| 目标进度展示 | |
| 可用性/状态历史 | |
Intl.NumberFormat("us")(n) => \(n) => \(n) => \Intl.NumberFormat("us")(n) => \(n) => \(n) => \