@coinbase/cds-mcp-server 8.17.2 → 8.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/mcp-docs/mobile/components/Accordion.txt +188 -0
- package/mcp-docs/mobile/components/AccordionItem.txt +29 -0
- package/mcp-docs/mobile/components/Alert.txt +155 -0
- package/mcp-docs/mobile/components/AreaChart.txt +265 -0
- package/mcp-docs/mobile/components/Avatar.txt +195 -0
- package/mcp-docs/mobile/components/AvatarButton.txt +225 -0
- package/mcp-docs/mobile/components/Banner.txt +221 -0
- package/mcp-docs/mobile/components/BarChart.txt +815 -0
- package/mcp-docs/mobile/components/Box.txt +173 -0
- package/mcp-docs/mobile/components/BrowserBar.txt +146 -0
- package/mcp-docs/mobile/components/Button.txt +198 -0
- package/mcp-docs/mobile/components/ButtonGroup.txt +79 -0
- package/mcp-docs/mobile/components/Carousel.txt +1083 -0
- package/mcp-docs/mobile/components/CartesianChart.txt +825 -0
- package/mcp-docs/mobile/components/CellMedia.txt +70 -0
- package/mcp-docs/mobile/components/Checkbox.txt +245 -0
- package/mcp-docs/mobile/components/CheckboxCell.txt +201 -0
- package/mcp-docs/mobile/components/CheckboxGroup.txt +284 -0
- package/mcp-docs/mobile/components/Chip.txt +194 -0
- package/mcp-docs/mobile/components/Coachmark.txt +157 -0
- package/mcp-docs/mobile/components/Collapsible.txt +104 -0
- package/mcp-docs/mobile/components/ContainedAssetCard.txt +134 -0
- package/mcp-docs/mobile/components/ContentCard.txt +365 -0
- package/mcp-docs/mobile/components/ContentCardBody.txt +135 -0
- package/mcp-docs/mobile/components/ContentCardFooter.txt +127 -0
- package/mcp-docs/mobile/components/ContentCardHeader.txt +145 -0
- package/mcp-docs/mobile/components/ContentCell.txt +226 -0
- package/mcp-docs/mobile/components/ControlGroup.txt +443 -0
- package/mcp-docs/mobile/components/DatePicker.txt +496 -0
- package/mcp-docs/mobile/components/Divider.txt +138 -0
- package/mcp-docs/mobile/components/DotCount.txt +145 -0
- package/mcp-docs/mobile/components/DotStatusColor.txt +58 -0
- package/mcp-docs/mobile/components/DotSymbol.txt +134 -0
- package/mcp-docs/mobile/components/Fallback.txt +157 -0
- package/mcp-docs/mobile/components/FloatingAssetCard.txt +155 -0
- package/mcp-docs/mobile/components/HStack.txt +234 -0
- package/mcp-docs/mobile/components/HeroSquare.txt +47 -0
- package/mcp-docs/mobile/components/Icon.txt +51 -0
- package/mcp-docs/mobile/components/IconButton.txt +268 -0
- package/mcp-docs/mobile/components/InputChip.txt +187 -0
- package/mcp-docs/mobile/components/Interactable.txt +186 -0
- package/mcp-docs/mobile/components/LineChart.txt +1324 -0
- package/mcp-docs/mobile/components/Link.txt +291 -0
- package/mcp-docs/mobile/components/ListCell.txt +412 -0
- package/mcp-docs/mobile/components/LogoMark.txt +84 -0
- package/mcp-docs/mobile/components/LogoWordMark.txt +93 -0
- package/mcp-docs/mobile/components/Lottie.txt +138 -0
- package/mcp-docs/mobile/components/LottieStatusAnimation.txt +46 -0
- package/mcp-docs/mobile/components/Modal.txt +83 -0
- package/mcp-docs/mobile/components/ModalBody.txt +33 -0
- package/mcp-docs/mobile/components/ModalFooter.txt +24 -0
- package/mcp-docs/mobile/components/ModalHeader.txt +27 -0
- package/mcp-docs/mobile/components/MultiContentModule.txt +379 -0
- package/mcp-docs/mobile/components/NavigationTitle.txt +131 -0
- package/mcp-docs/mobile/components/NavigationTitleSelect.txt +141 -0
- package/mcp-docs/mobile/components/NudgeCard.txt +89 -0
- package/mcp-docs/mobile/components/Numpad.txt +340 -0
- package/mcp-docs/mobile/components/Overlay.txt +151 -0
- package/mcp-docs/mobile/components/PageFooter.txt +160 -0
- package/mcp-docs/mobile/components/PageHeader.txt +185 -0
- package/mcp-docs/mobile/components/PeriodSelector.txt +407 -0
- package/mcp-docs/mobile/components/Pictogram.txt +47 -0
- package/mcp-docs/mobile/components/Point.txt +204 -0
- package/mcp-docs/mobile/components/PortalProvider.txt +78 -0
- package/mcp-docs/mobile/components/Pressable.txt +210 -0
- package/mcp-docs/mobile/components/ProgressBar.txt +129 -0
- package/mcp-docs/mobile/components/ProgressBarWithFixedLabels.txt +160 -0
- package/mcp-docs/mobile/components/ProgressBarWithFloatLabel.txt +137 -0
- package/mcp-docs/mobile/components/ProgressCircle.txt +236 -0
- package/mcp-docs/mobile/components/Radio.txt +241 -0
- package/mcp-docs/mobile/components/RadioCell.txt +201 -0
- package/mcp-docs/mobile/components/RadioGroup.txt +281 -0
- package/mcp-docs/mobile/components/ReferenceLine.txt +152 -0
- package/mcp-docs/mobile/components/RemoteImage.txt +105 -0
- package/mcp-docs/mobile/components/RemoteImageGroup.txt +60 -0
- package/mcp-docs/mobile/components/RollingNumber.txt +788 -0
- package/mcp-docs/mobile/components/Scrubber.txt +203 -0
- package/mcp-docs/mobile/components/SearchInput.txt +191 -0
- package/mcp-docs/mobile/components/SectionHeader.txt +204 -0
- package/mcp-docs/mobile/components/SegmentedTabs.txt +315 -0
- package/mcp-docs/mobile/components/Select.txt +211 -0
- package/mcp-docs/mobile/components/SelectChip.txt +323 -0
- package/mcp-docs/mobile/components/SelectOption.txt +84 -0
- package/mcp-docs/mobile/components/SlideButton.txt +330 -0
- package/mcp-docs/mobile/components/Spacer.txt +83 -0
- package/mcp-docs/mobile/components/Sparkline.txt +122 -0
- package/mcp-docs/mobile/components/SparklineGradient.txt +106 -0
- package/mcp-docs/mobile/components/SparklineInteractive.txt +156 -0
- package/mcp-docs/mobile/components/SparklineInteractiveHeader.txt +72 -0
- package/mcp-docs/mobile/components/Spinner.txt +48 -0
- package/mcp-docs/mobile/components/SpotIcon.txt +47 -0
- package/mcp-docs/mobile/components/SpotRectangle.txt +47 -0
- package/mcp-docs/mobile/components/SpotSquare.txt +47 -0
- package/mcp-docs/mobile/components/Stepper.txt +527 -0
- package/mcp-docs/mobile/components/SubBrandLogoMark.txt +125 -0
- package/mcp-docs/mobile/components/SubBrandLogoWordMark.txt +125 -0
- package/mcp-docs/mobile/components/Switch.txt +97 -0
- package/mcp-docs/mobile/components/TabIndicator.txt +48 -0
- package/mcp-docs/mobile/components/TabLabel.txt +153 -0
- package/mcp-docs/mobile/components/TabNavigation.txt +146 -0
- package/mcp-docs/mobile/components/TabbedChips.txt +142 -0
- package/mcp-docs/mobile/components/Tabs.txt +190 -0
- package/mcp-docs/mobile/components/Tag.txt +300 -0
- package/mcp-docs/mobile/components/Text.txt +211 -0
- package/mcp-docs/mobile/components/TextInput.txt +717 -0
- package/mcp-docs/mobile/components/ThemeProvider.txt +132 -0
- package/mcp-docs/mobile/components/Toast.txt +196 -0
- package/mcp-docs/mobile/components/Tooltip.txt +59 -0
- package/mcp-docs/mobile/components/TopNavBar.txt +161 -0
- package/mcp-docs/mobile/components/Tour.txt +158 -0
- package/mcp-docs/mobile/components/Tray.txt +252 -0
- package/mcp-docs/mobile/components/UpsellCard.txt +321 -0
- package/mcp-docs/mobile/components/VStack.txt +222 -0
- package/mcp-docs/mobile/components/XAxis.txt +621 -0
- package/mcp-docs/mobile/components/YAxis.txt +567 -0
- package/mcp-docs/mobile/getting-started/ai-overview.txt +108 -0
- package/mcp-docs/mobile/getting-started/installation.txt +57 -0
- package/mcp-docs/mobile/getting-started/introduction.txt +102 -0
- package/mcp-docs/mobile/getting-started/playground.txt +28 -0
- package/mcp-docs/mobile/getting-started/styling.txt +84 -0
- package/mcp-docs/mobile/getting-started/theming.txt +286 -0
- package/mcp-docs/mobile/hooks/useDimensions.txt +72 -0
- package/mcp-docs/mobile/hooks/useEventHandler.txt +120 -0
- package/mcp-docs/mobile/hooks/useMergeRefs.txt +116 -0
- package/mcp-docs/mobile/hooks/useOverlayContentContext.txt +280 -0
- package/mcp-docs/mobile/hooks/usePreviousValue.txt +74 -0
- package/mcp-docs/mobile/hooks/useRefMap.txt +178 -0
- package/mcp-docs/mobile/hooks/useTheme.txt +321 -0
- package/mcp-docs/mobile/routes.txt +139 -0
- package/mcp-docs/web/components/Accordion.txt +189 -0
- package/mcp-docs/web/components/AccordionItem.txt +31 -0
- package/mcp-docs/web/components/Alert.txt +164 -0
- package/mcp-docs/web/components/AreaChart.txt +510 -0
- package/mcp-docs/web/components/Avatar.txt +211 -0
- package/mcp-docs/web/components/AvatarButton.txt +240 -0
- package/mcp-docs/web/components/Banner.txt +226 -0
- package/mcp-docs/web/components/BarChart.txt +1267 -0
- package/mcp-docs/web/components/Box.txt +175 -0
- package/mcp-docs/web/components/Button.txt +212 -0
- package/mcp-docs/web/components/ButtonGroup.txt +79 -0
- package/mcp-docs/web/components/Calendar.txt +181 -0
- package/mcp-docs/web/components/Carousel.txt +1575 -0
- package/mcp-docs/web/components/CartesianChart.txt +1044 -0
- package/mcp-docs/web/components/CellMedia.txt +56 -0
- package/mcp-docs/web/components/Checkbox.txt +188 -0
- package/mcp-docs/web/components/CheckboxCell.txt +202 -0
- package/mcp-docs/web/components/CheckboxGroup.txt +219 -0
- package/mcp-docs/web/components/Chip.txt +196 -0
- package/mcp-docs/web/components/Coachmark.txt +188 -0
- package/mcp-docs/web/components/Collapsible.txt +119 -0
- package/mcp-docs/web/components/ContainedAssetCard.txt +232 -0
- package/mcp-docs/web/components/ContentCard.txt +367 -0
- package/mcp-docs/web/components/ContentCardBody.txt +137 -0
- package/mcp-docs/web/components/ContentCardFooter.txt +129 -0
- package/mcp-docs/web/components/ContentCardHeader.txt +147 -0
- package/mcp-docs/web/components/ContentCell.txt +219 -0
- package/mcp-docs/web/components/ControlGroup.txt +436 -0
- package/mcp-docs/web/components/DatePicker.txt +505 -0
- package/mcp-docs/web/components/Divider.txt +143 -0
- package/mcp-docs/web/components/DotCount.txt +149 -0
- package/mcp-docs/web/components/DotStatusColor.txt +58 -0
- package/mcp-docs/web/components/DotSymbol.txt +137 -0
- package/mcp-docs/web/components/Dropdown.txt +119 -0
- package/mcp-docs/web/components/Fallback.txt +163 -0
- package/mcp-docs/web/components/FloatingAssetCard.txt +250 -0
- package/mcp-docs/web/components/FullscreenAlert.txt +69 -0
- package/mcp-docs/web/components/FullscreenModal.txt +145 -0
- package/mcp-docs/web/components/FullscreenModalLayout.txt +187 -0
- package/mcp-docs/web/components/Grid.txt +236 -0
- package/mcp-docs/web/components/GridColumn.txt +209 -0
- package/mcp-docs/web/components/HStack.txt +236 -0
- package/mcp-docs/web/components/HeroSquare.txt +48 -0
- package/mcp-docs/web/components/Icon.txt +145 -0
- package/mcp-docs/web/components/IconButton.txt +390 -0
- package/mcp-docs/web/components/InputChip.txt +187 -0
- package/mcp-docs/web/components/Interactable.txt +193 -0
- package/mcp-docs/web/components/LineChart.txt +1576 -0
- package/mcp-docs/web/components/Link.txt +243 -0
- package/mcp-docs/web/components/ListCell.txt +418 -0
- package/mcp-docs/web/components/LogoMark.txt +84 -0
- package/mcp-docs/web/components/LogoWordMark.txt +93 -0
- package/mcp-docs/web/components/Lottie.txt +157 -0
- package/mcp-docs/web/components/LottieStatusAnimation.txt +57 -0
- package/mcp-docs/web/components/MediaQueryProvider.txt +108 -0
- package/mcp-docs/web/components/Modal.txt +196 -0
- package/mcp-docs/web/components/ModalBody.txt +117 -0
- package/mcp-docs/web/components/ModalFooter.txt +119 -0
- package/mcp-docs/web/components/ModalHeader.txt +123 -0
- package/mcp-docs/web/components/MultiContentModule.txt +381 -0
- package/mcp-docs/web/components/NavigationBar.txt +102 -0
- package/mcp-docs/web/components/NavigationTitle.txt +25 -0
- package/mcp-docs/web/components/NavigationTitleSelect.txt +45 -0
- package/mcp-docs/web/components/NudgeCard.txt +181 -0
- package/mcp-docs/web/components/Overlay.txt +171 -0
- package/mcp-docs/web/components/PageFooter.txt +184 -0
- package/mcp-docs/web/components/PageHeader.txt +243 -0
- package/mcp-docs/web/components/Pagination.txt +499 -0
- package/mcp-docs/web/components/PeriodSelector.txt +703 -0
- package/mcp-docs/web/components/Pictogram.txt +48 -0
- package/mcp-docs/web/components/Point.txt +460 -0
- package/mcp-docs/web/components/PortalProvider.txt +76 -0
- package/mcp-docs/web/components/Pressable.txt +193 -0
- package/mcp-docs/web/components/ProgressBar.txt +163 -0
- package/mcp-docs/web/components/ProgressBarWithFixedLabels.txt +212 -0
- package/mcp-docs/web/components/ProgressBarWithFloatLabel.txt +181 -0
- package/mcp-docs/web/components/ProgressCircle.txt +443 -0
- package/mcp-docs/web/components/Radio.txt +219 -0
- package/mcp-docs/web/components/RadioCell.txt +215 -0
- package/mcp-docs/web/components/RadioGroup.txt +288 -0
- package/mcp-docs/web/components/ReferenceLine.txt +451 -0
- package/mcp-docs/web/components/RemoteImage.txt +165 -0
- package/mcp-docs/web/components/RemoteImageGroup.txt +86 -0
- package/mcp-docs/web/components/RollingNumber.txt +1021 -0
- package/mcp-docs/web/components/Scrubber.txt +231 -0
- package/mcp-docs/web/components/SearchInput.txt +117 -0
- package/mcp-docs/web/components/SectionHeader.txt +217 -0
- package/mcp-docs/web/components/SegmentedTabs.txt +324 -0
- package/mcp-docs/web/components/Select.txt +224 -0
- package/mcp-docs/web/components/SelectChip.txt +314 -0
- package/mcp-docs/web/components/SelectOption.txt +165 -0
- package/mcp-docs/web/components/Sidebar.txt +349 -0
- package/mcp-docs/web/components/SidebarItem.txt +131 -0
- package/mcp-docs/web/components/SidebarMoreMenu.txt +30 -0
- package/mcp-docs/web/components/Spacer.txt +173 -0
- package/mcp-docs/web/components/Sparkline.txt +122 -0
- package/mcp-docs/web/components/SparklineGradient.txt +106 -0
- package/mcp-docs/web/components/SparklineInteractive.txt +153 -0
- package/mcp-docs/web/components/SparklineInteractiveHeader.txt +76 -0
- package/mcp-docs/web/components/Spinner.txt +128 -0
- package/mcp-docs/web/components/SpotIcon.txt +48 -0
- package/mcp-docs/web/components/SpotRectangle.txt +48 -0
- package/mcp-docs/web/components/SpotSquare.txt +48 -0
- package/mcp-docs/web/components/Stepper.txt +682 -0
- package/mcp-docs/web/components/SubBrandLogoMark.txt +125 -0
- package/mcp-docs/web/components/SubBrandLogoWordMark.txt +125 -0
- package/mcp-docs/web/components/Switch.txt +85 -0
- package/mcp-docs/web/components/TabIndicator.txt +48 -0
- package/mcp-docs/web/components/TabLabel.txt +158 -0
- package/mcp-docs/web/components/TabNavigation.txt +159 -0
- package/mcp-docs/web/components/TabbedChips.txt +155 -0
- package/mcp-docs/web/components/Table.txt +367 -0
- package/mcp-docs/web/components/TableBody.txt +83 -0
- package/mcp-docs/web/components/TableCaption.txt +102 -0
- package/mcp-docs/web/components/TableCell.txt +165 -0
- package/mcp-docs/web/components/TableCellFallback.txt +97 -0
- package/mcp-docs/web/components/TableFooter.txt +83 -0
- package/mcp-docs/web/components/TableHeader.txt +100 -0
- package/mcp-docs/web/components/TableRow.txt +140 -0
- package/mcp-docs/web/components/Tabs.txt +212 -0
- package/mcp-docs/web/components/Tag.txt +304 -0
- package/mcp-docs/web/components/Text.txt +232 -0
- package/mcp-docs/web/components/TextInput.txt +652 -0
- package/mcp-docs/web/components/ThemeProvider.txt +199 -0
- package/mcp-docs/web/components/TileButton.txt +158 -0
- package/mcp-docs/web/components/Toast.txt +203 -0
- package/mcp-docs/web/components/Tooltip.txt +89 -0
- package/mcp-docs/web/components/Tour.txt +179 -0
- package/mcp-docs/web/components/Tray.txt +288 -0
- package/mcp-docs/web/components/UpsellCard.txt +319 -0
- package/mcp-docs/web/components/VStack.txt +224 -0
- package/mcp-docs/web/components/XAxis.txt +619 -0
- package/mcp-docs/web/components/YAxis.txt +548 -0
- package/mcp-docs/web/getting-started/ai-overview.txt +108 -0
- package/mcp-docs/web/getting-started/installation.txt +103 -0
- package/mcp-docs/web/getting-started/introduction.txt +102 -0
- package/mcp-docs/web/getting-started/playground.txt +28 -0
- package/mcp-docs/web/getting-started/styling.txt +161 -0
- package/mcp-docs/web/getting-started/templates.txt +121 -0
- package/mcp-docs/web/getting-started/theming.txt +426 -0
- package/mcp-docs/web/hooks/useBreakpoints.txt +61 -0
- package/mcp-docs/web/hooks/useDimensions.txt +114 -0
- package/mcp-docs/web/hooks/useEventHandler.txt +120 -0
- package/mcp-docs/web/hooks/useHasMounted.txt +75 -0
- package/mcp-docs/web/hooks/useIsoEffect.txt +58 -0
- package/mcp-docs/web/hooks/useMediaQuery.txt +114 -0
- package/mcp-docs/web/hooks/useMergeRefs.txt +116 -0
- package/mcp-docs/web/hooks/useOverlayContentContext.txt +279 -0
- package/mcp-docs/web/hooks/usePreviousValue.txt +74 -0
- package/mcp-docs/web/hooks/useRefMap.txt +178 -0
- package/mcp-docs/web/hooks/useScrollBlocker.txt +82 -0
- package/mcp-docs/web/hooks/useTheme.txt +364 -0
- package/mcp-docs/web/routes.txt +163 -0
- package/package.json +1 -1
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
# AreaChart
|
|
2
|
+
|
|
3
|
+
A chart component that displays data as filled areas beneath lines. Ideal for showing cumulative values, stacked data, or emphasizing volume over time.
|
|
4
|
+
|
|
5
|
+
## Import
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import { AreaChart } from '@coinbase/cds-web-visualization'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
AreaChart is a cartesian chart variant that allows for easy visualization of stacked data.
|
|
14
|
+
|
|
15
|
+
### Basic Example
|
|
16
|
+
|
|
17
|
+
```jsx live
|
|
18
|
+
<AreaChart
|
|
19
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
20
|
+
inset={{ top: 8, bottom: 8, left: 0, right: 0 }}
|
|
21
|
+
series={[
|
|
22
|
+
{
|
|
23
|
+
id: 'prices',
|
|
24
|
+
data: [10, 22, 29, 45, 98, 45, 22, 52, 21, 2, 68, 20, 21, 58],
|
|
25
|
+
},
|
|
26
|
+
]}
|
|
27
|
+
type="gradient"
|
|
28
|
+
showLines
|
|
29
|
+
curve="monotone"
|
|
30
|
+
showYAxis
|
|
31
|
+
yAxis={{
|
|
32
|
+
showGrid: true,
|
|
33
|
+
width: 32,
|
|
34
|
+
}}
|
|
35
|
+
/>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Simple
|
|
39
|
+
|
|
40
|
+
```jsx live
|
|
41
|
+
<AreaChart
|
|
42
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
43
|
+
inset={0}
|
|
44
|
+
series={[
|
|
45
|
+
{
|
|
46
|
+
id: 'prices',
|
|
47
|
+
data: [10, 22, 29, 45, 98, 45, 22, 52, 21, 2, 68, 20, 21, 58],
|
|
48
|
+
},
|
|
49
|
+
]}
|
|
50
|
+
type="gradient"
|
|
51
|
+
showLines
|
|
52
|
+
curve="monotone"
|
|
53
|
+
/>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Stacking
|
|
57
|
+
|
|
58
|
+
You can use the `stacked` prop to stack all areas on top of each other. You can also use the `stackId` prop on a series to create different stack groups. See [CartesianChart](/components/graphs/CartesianChart/#series-stacks) for more details.
|
|
59
|
+
|
|
60
|
+
```jsx live
|
|
61
|
+
<AreaChart
|
|
62
|
+
showLines
|
|
63
|
+
stacked
|
|
64
|
+
curve="natural"
|
|
65
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
66
|
+
inset={0}
|
|
67
|
+
series={[
|
|
68
|
+
{
|
|
69
|
+
id: 'currentRewards',
|
|
70
|
+
data: [
|
|
71
|
+
100, 150, 200, 280, 380, 500, 650, 820, 1020, 1250, 1510, 1800, 2120, 2470, 2850, 3260,
|
|
72
|
+
3700, 4170,
|
|
73
|
+
],
|
|
74
|
+
color: 'var(--color-fg)',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'potentialRewards',
|
|
78
|
+
data: [
|
|
79
|
+
150, 220, 300, 400, 520, 660, 820, 1000, 1200, 1420, 1660, 1920, 2200, 2500, 2820, 3160,
|
|
80
|
+
3520, 3900,
|
|
81
|
+
],
|
|
82
|
+
color: 'var(--color-fgPositive)',
|
|
83
|
+
LineComponent: DottedLine,
|
|
84
|
+
},
|
|
85
|
+
]}
|
|
86
|
+
AreaComponent={(props) => <DottedArea {...props} peakOpacity={0.4} baselineOpacity={0.4} />}
|
|
87
|
+
type="dotted"
|
|
88
|
+
/>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Negative Values
|
|
92
|
+
|
|
93
|
+
When an area chart contains negative values, the baseline automatically adjusts to zero instead of the bottom of the chart. The area fills from the data line to the zero baseline, properly showing both positive and negative regions.
|
|
94
|
+
|
|
95
|
+
```jsx live
|
|
96
|
+
<AreaChart
|
|
97
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
98
|
+
inset={0}
|
|
99
|
+
series={[
|
|
100
|
+
{
|
|
101
|
+
id: 'pageViews',
|
|
102
|
+
data: [24, 13, -98, 39, 48, 38, 43],
|
|
103
|
+
},
|
|
104
|
+
]}
|
|
105
|
+
AreaComponent={(props) => <SolidArea {...props} opacity={0.4} />}
|
|
106
|
+
showLines
|
|
107
|
+
showYAxis
|
|
108
|
+
yAxis={{
|
|
109
|
+
showGrid: true,
|
|
110
|
+
}}
|
|
111
|
+
/>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Area Styles
|
|
115
|
+
|
|
116
|
+
You can have different area styles for each series.
|
|
117
|
+
|
|
118
|
+
```jsx live
|
|
119
|
+
<AreaChart
|
|
120
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
121
|
+
inset={0}
|
|
122
|
+
series={[
|
|
123
|
+
{
|
|
124
|
+
id: 'visitors',
|
|
125
|
+
data: [450, 520, 480, 600, 750, 680, 590],
|
|
126
|
+
label: 'Weekly Visitors',
|
|
127
|
+
color: '#fb4d3d',
|
|
128
|
+
type: 'dotted',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 'repeatVisitors',
|
|
132
|
+
data: [250, 200, 150, 140, 100, 80, 50],
|
|
133
|
+
label: 'Weekly Repeat Visitors',
|
|
134
|
+
color: '#16a34a',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 'signups',
|
|
138
|
+
data: [45, 62, 55, 250, 380, 400, 450],
|
|
139
|
+
label: 'Weekly Signups',
|
|
140
|
+
color: '#2563eb',
|
|
141
|
+
type: 'gradient',
|
|
142
|
+
},
|
|
143
|
+
]}
|
|
144
|
+
/>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Props
|
|
148
|
+
|
|
149
|
+
| Prop | Type | Required | Default | Description |
|
|
150
|
+
| --- | --- | --- | --- | --- |
|
|
151
|
+
| `AreaComponent` | `AreaComponent` | No | `-` | Component to render the area. Takes precedence over the type prop if provided. |
|
|
152
|
+
| `LineComponent` | `LineComponent` | No | `-` | Component to render the line. Takes precedence over the type prop if provided. |
|
|
153
|
+
| `accentHeight` | `string \| number` | No | `-` | - |
|
|
154
|
+
| `accumulate` | `none \| sum` | No | `-` | - |
|
|
155
|
+
| `additive` | `sum \| replace` | No | `-` | - |
|
|
156
|
+
| `alignContent` | `ResponsiveProp<center \| end \| normal \| start \| flex-start \| flex-end \| space-between \| space-around \| space-evenly \| stretch \| baseline \| first baseline \| last baseline>` | No | `-` | - |
|
|
157
|
+
| `alignItems` | `ResponsiveProp<center \| end \| normal \| start \| flex-start \| flex-end \| stretch \| baseline \| first baseline \| last baseline \| self-start \| self-end>` | No | `-` | - |
|
|
158
|
+
| `alignSelf` | `ResponsiveProp<center \| end \| normal \| auto \| start \| flex-start \| flex-end \| stretch \| baseline \| first baseline \| last baseline \| self-start \| self-end>` | No | `-` | - |
|
|
159
|
+
| `alignmentBaseline` | `alphabetic \| hanging \| ideographic \| mathematical \| inherit \| auto \| baseline \| before-edge \| text-before-edge \| middle \| central \| after-edge \| text-after-edge` | No | `-` | - |
|
|
160
|
+
| `allowReorder` | `no \| yes` | No | `-` | - |
|
|
161
|
+
| `alphabetic` | `string \| number` | No | `-` | - |
|
|
162
|
+
| `amplitude` | `string \| number` | No | `-` | - |
|
|
163
|
+
| `animate` | `boolean` | No | `true` | Whether to animate the chart. |
|
|
164
|
+
| `arabicForm` | `initial \| medial \| terminal \| isolated` | No | `-` | - |
|
|
165
|
+
| `as` | `svg` | No | `-` | - |
|
|
166
|
+
| `ascent` | `string \| number` | No | `-` | - |
|
|
167
|
+
| `aspectRatio` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
168
|
+
| `attributeName` | `string` | No | `-` | - |
|
|
169
|
+
| `attributeType` | `string` | No | `-` | - |
|
|
170
|
+
| `autoReverse` | `false \| true \| true \| false` | No | `-` | - |
|
|
171
|
+
| `azimuth` | `string \| number` | No | `-` | - |
|
|
172
|
+
| `background` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
173
|
+
| `baseFrequency` | `string \| number` | No | `-` | - |
|
|
174
|
+
| `baseProfile` | `string \| number` | No | `-` | - |
|
|
175
|
+
| `baselineShift` | `string \| number` | No | `-` | - |
|
|
176
|
+
| `bbox` | `string \| number` | No | `-` | - |
|
|
177
|
+
| `begin` | `string \| number` | No | `-` | - |
|
|
178
|
+
| `bias` | `string \| number` | No | `-` | - |
|
|
179
|
+
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
180
|
+
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
181
|
+
| `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
182
|
+
| `borderColor` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
183
|
+
| `borderEndWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
184
|
+
| `borderRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
185
|
+
| `borderStartWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
186
|
+
| `borderTopLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
187
|
+
| `borderTopRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
188
|
+
| `borderTopWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
189
|
+
| `borderWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
190
|
+
| `bordered` | `boolean` | No | `-` | Add a border around all sides of the box. |
|
|
191
|
+
| `borderedBottom` | `boolean` | No | `-` | Add a border to the bottom side of the box. |
|
|
192
|
+
| `borderedEnd` | `boolean` | No | `-` | Add a border to the trailing side of the box. |
|
|
193
|
+
| `borderedHorizontal` | `boolean` | No | `-` | Add a border to the leading and trailing sides of the box. |
|
|
194
|
+
| `borderedStart` | `boolean` | No | `-` | Add a border to the leading side of the box. |
|
|
195
|
+
| `borderedTop` | `boolean` | No | `-` | Add a border to the top side of the box. |
|
|
196
|
+
| `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. |
|
|
197
|
+
| `bottom` | `ResponsiveProp<Bottom<string \| number>>` | No | `-` | - |
|
|
198
|
+
| `by` | `string \| number` | No | `-` | - |
|
|
199
|
+
| `calcMode` | `string \| number` | No | `-` | - |
|
|
200
|
+
| `capHeight` | `string \| number` | No | `-` | - |
|
|
201
|
+
| `className` | `string` | No | `-` | - |
|
|
202
|
+
| `clip` | `string \| number` | No | `-` | - |
|
|
203
|
+
| `clipPath` | `string` | No | `-` | - |
|
|
204
|
+
| `clipPathUnits` | `string \| number` | No | `-` | - |
|
|
205
|
+
| `clipRule` | `string \| number` | No | `-` | - |
|
|
206
|
+
| `color` | `currentColor \| fg \| fgMuted \| fgInverse \| fgPrimary \| fgWarning \| fgPositive \| fgNegative \| bg \| bgAlternate \| bgInverse \| bgOverlay \| bgElevation1 \| bgElevation2 \| bgPrimary \| bgPrimaryWash \| bgSecondary \| bgTertiary \| bgSecondaryWash \| bgNegative \| bgNegativeWash \| bgPositive \| bgPositiveWash \| bgWarning \| bgWarningWash \| bgLine \| bgLineHeavy \| bgLineInverse \| bgLinePrimary \| bgLinePrimarySubtle \| accentSubtleRed \| accentBoldRed \| accentSubtleGreen \| accentBoldGreen \| accentSubtleBlue \| accentBoldBlue \| accentSubtlePurple \| accentBoldPurple \| accentSubtleYellow \| accentBoldYellow \| accentSubtleGray \| accentBoldGray \| transparent` | No | `-` | - |
|
|
207
|
+
| `colorInterpolation` | `string \| number` | No | `-` | - |
|
|
208
|
+
| `colorInterpolationFilters` | `inherit \| auto \| sRGB \| linearRGB` | No | `-` | - |
|
|
209
|
+
| `colorProfile` | `string \| number` | No | `-` | - |
|
|
210
|
+
| `colorRendering` | `string \| number` | No | `-` | - |
|
|
211
|
+
| `columnGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
212
|
+
| `contentScriptType` | `string \| number` | No | `-` | - |
|
|
213
|
+
| `contentStyleType` | `string \| number` | No | `-` | - |
|
|
214
|
+
| `crossOrigin` | ` \| anonymous \| use-credentials` | No | `-` | - |
|
|
215
|
+
| `cursor` | `string \| number` | No | `-` | - |
|
|
216
|
+
| `curve` | `bump \| catmullRom \| linear \| linearClosed \| monotone \| natural \| step \| stepBefore \| stepAfter` | No | `'linear'` | The curve interpolation method to use for the line. |
|
|
217
|
+
| `cx` | `string \| number` | No | `-` | - |
|
|
218
|
+
| `cy` | `string \| number` | No | `-` | - |
|
|
219
|
+
| `d` | `string` | No | `-` | - |
|
|
220
|
+
| `dangerouslySetBackground` | `string` | No | `-` | - |
|
|
221
|
+
| `decelerate` | `string \| number` | No | `-` | - |
|
|
222
|
+
| `descent` | `string \| number` | No | `-` | - |
|
|
223
|
+
| `diffuseConstant` | `string \| number` | No | `-` | - |
|
|
224
|
+
| `direction` | `string \| number` | No | `-` | - |
|
|
225
|
+
| `display` | `ResponsiveProp<grid \| revert \| none \| block \| inline \| inline-block \| flex \| inline-flex \| inline-grid \| contents \| flow-root \| list-item>` | No | `-` | - |
|
|
226
|
+
| `divisor` | `string \| number` | No | `-` | - |
|
|
227
|
+
| `dominantBaseline` | `string \| number` | No | `-` | - |
|
|
228
|
+
| `dur` | `string \| number` | No | `-` | - |
|
|
229
|
+
| `dx` | `string \| number` | No | `-` | - |
|
|
230
|
+
| `dy` | `string \| number` | No | `-` | - |
|
|
231
|
+
| `edgeMode` | `string \| number` | No | `-` | - |
|
|
232
|
+
| `elevation` | `0 \| 1 \| 2` | No | `-` | - |
|
|
233
|
+
| `enableBackground` | `string \| number` | No | `-` | - |
|
|
234
|
+
| `enableScrubbing` | `boolean` | No | `-` | Enables scrubbing interactions. When true, allows scrubbing and makes scrubber components interactive. |
|
|
235
|
+
| `end` | `string \| number` | No | `-` | - |
|
|
236
|
+
| `exponent` | `string \| number` | No | `-` | - |
|
|
237
|
+
| `externalResourcesRequired` | `false \| true \| true \| false` | No | `-` | - |
|
|
238
|
+
| `fill` | `string` | No | `-` | - |
|
|
239
|
+
| `fillOpacity` | `number` | No | `-` | - |
|
|
240
|
+
| `fillRule` | `inherit \| nonzero \| evenodd` | No | `-` | - |
|
|
241
|
+
| `filter` | `string` | No | `-` | - |
|
|
242
|
+
| `filterRes` | `string \| number` | No | `-` | - |
|
|
243
|
+
| `filterUnits` | `string \| number` | No | `-` | - |
|
|
244
|
+
| `flexBasis` | `ResponsiveProp<FlexBasis<string \| number>>` | No | `-` | - |
|
|
245
|
+
| `flexDirection` | `ResponsiveProp<row \| row-reverse \| column \| column-reverse>` | No | `-` | - |
|
|
246
|
+
| `flexGrow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
|
|
247
|
+
| `flexShrink` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
|
|
248
|
+
| `flexWrap` | `ResponsiveProp<nowrap \| wrap \| wrap-reverse>` | No | `-` | - |
|
|
249
|
+
| `floodColor` | `string \| number` | No | `-` | - |
|
|
250
|
+
| `floodOpacity` | `string \| number` | No | `-` | - |
|
|
251
|
+
| `focusable` | `auto \| Booleanish` | No | `-` | - |
|
|
252
|
+
| `font` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
|
|
253
|
+
| `fontFamily` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
|
|
254
|
+
| `fontSize` | `ResponsiveProp<FontSize \| inherit>` | No | `-` | - |
|
|
255
|
+
| `fontSizeAdjust` | `string \| number` | No | `-` | - |
|
|
256
|
+
| `fontStretch` | `string \| number` | No | `-` | - |
|
|
257
|
+
| `fontStyle` | `string \| number` | No | `-` | - |
|
|
258
|
+
| `fontVariant` | `string \| number` | No | `-` | - |
|
|
259
|
+
| `fontWeight` | `ResponsiveProp<FontWeight \| inherit>` | No | `-` | - |
|
|
260
|
+
| `format` | `string \| number` | No | `-` | - |
|
|
261
|
+
| `fr` | `string \| number` | No | `-` | - |
|
|
262
|
+
| `from` | `string \| number` | No | `-` | - |
|
|
263
|
+
| `fx` | `string \| number` | No | `-` | - |
|
|
264
|
+
| `fy` | `string \| number` | No | `-` | - |
|
|
265
|
+
| `g1` | `string \| number` | No | `-` | - |
|
|
266
|
+
| `g2` | `string \| number` | No | `-` | - |
|
|
267
|
+
| `gap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
268
|
+
| `glyphName` | `string \| number` | No | `-` | - |
|
|
269
|
+
| `glyphOrientationHorizontal` | `string \| number` | No | `-` | - |
|
|
270
|
+
| `glyphOrientationVertical` | `string \| number` | No | `-` | - |
|
|
271
|
+
| `glyphRef` | `string \| number` | No | `-` | - |
|
|
272
|
+
| `gradientTransform` | `string` | No | `-` | - |
|
|
273
|
+
| `gradientUnits` | `string` | No | `-` | - |
|
|
274
|
+
| `grid` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
|
|
275
|
+
| `gridArea` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
276
|
+
| `gridAutoColumns` | `ResponsiveProp<GridAutoColumns<string \| number>>` | No | `-` | - |
|
|
277
|
+
| `gridAutoFlow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| row \| column \| dense` | No | `-` | - |
|
|
278
|
+
| `gridAutoRows` | `ResponsiveProp<GridAutoRows<string \| number>>` | No | `-` | - |
|
|
279
|
+
| `gridColumn` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
280
|
+
| `gridColumnEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
281
|
+
| `gridColumnStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
282
|
+
| `gridRow` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
283
|
+
| `gridRowEnd` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
284
|
+
| `gridRowStart` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
285
|
+
| `gridTemplate` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
|
|
286
|
+
| `gridTemplateAreas` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
|
|
287
|
+
| `gridTemplateColumns` | `ResponsiveProp<GridTemplateColumns<string \| number>>` | No | `-` | - |
|
|
288
|
+
| `gridTemplateRows` | `ResponsiveProp<GridTemplateRows<string \| number>>` | No | `-` | - |
|
|
289
|
+
| `hanging` | `string \| number` | No | `-` | - |
|
|
290
|
+
| `height` | `ResponsiveProp<Height<string \| number>>` | No | `-` | - |
|
|
291
|
+
| `horizAdvX` | `string \| number` | No | `-` | - |
|
|
292
|
+
| `horizOriginX` | `string \| number` | No | `-` | - |
|
|
293
|
+
| `href` | `string` | No | `-` | - |
|
|
294
|
+
| `id` | `string` | No | `-` | - |
|
|
295
|
+
| `ideographic` | `string \| number` | No | `-` | - |
|
|
296
|
+
| `imageRendering` | `string \| number` | No | `-` | - |
|
|
297
|
+
| `in` | `string` | No | `-` | - |
|
|
298
|
+
| `in2` | `string \| number` | No | `-` | - |
|
|
299
|
+
| `inset` | `number \| Partial<ChartInset>` | No | `-` | Inset around the entire chart (outside the axes). |
|
|
300
|
+
| `intercept` | `string \| number` | No | `-` | - |
|
|
301
|
+
| `justifyContent` | `ResponsiveProp<left \| right \| center \| end \| normal \| start \| flex-start \| flex-end \| space-between \| space-around \| space-evenly \| stretch>` | No | `-` | - |
|
|
302
|
+
| `k` | `string \| number` | No | `-` | - |
|
|
303
|
+
| `k1` | `string \| number` | No | `-` | - |
|
|
304
|
+
| `k2` | `string \| number` | No | `-` | - |
|
|
305
|
+
| `k3` | `string \| number` | No | `-` | - |
|
|
306
|
+
| `k4` | `string \| number` | No | `-` | - |
|
|
307
|
+
| `kernelMatrix` | `string \| number` | No | `-` | - |
|
|
308
|
+
| `kernelUnitLength` | `string \| number` | No | `-` | - |
|
|
309
|
+
| `kerning` | `string \| number` | No | `-` | - |
|
|
310
|
+
| `key` | `Key \| null` | No | `-` | - |
|
|
311
|
+
| `keyPoints` | `string \| number` | No | `-` | - |
|
|
312
|
+
| `keySplines` | `string \| number` | No | `-` | - |
|
|
313
|
+
| `keyTimes` | `string \| number` | No | `-` | - |
|
|
314
|
+
| `lang` | `string` | No | `-` | - |
|
|
315
|
+
| `left` | `ResponsiveProp<Left<string \| number>>` | No | `-` | - |
|
|
316
|
+
| `lengthAdjust` | `string \| number` | No | `-` | - |
|
|
317
|
+
| `letterSpacing` | `string \| number` | No | `-` | - |
|
|
318
|
+
| `lightingColor` | `string \| number` | No | `-` | - |
|
|
319
|
+
| `limitingConeAngle` | `string \| number` | No | `-` | - |
|
|
320
|
+
| `lineHeight` | `ResponsiveProp<LineHeight \| inherit>` | No | `-` | - |
|
|
321
|
+
| `lineType` | `dotted \| solid \| gradient` | No | `'solid'` | The type of line to render. |
|
|
322
|
+
| `local` | `string \| number` | No | `-` | - |
|
|
323
|
+
| `margin` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
324
|
+
| `marginBottom` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
325
|
+
| `marginEnd` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
326
|
+
| `marginStart` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
327
|
+
| `marginTop` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
328
|
+
| `marginX` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
329
|
+
| `marginY` | `ResponsiveProp<0 \| -5 \| -10 \| -0.25 \| -0.5 \| -0.75 \| -1 \| -1.5 \| -2 \| -3 \| -4 \| -6 \| -7 \| -8 \| -9>` | No | `-` | - |
|
|
330
|
+
| `markerEnd` | `string` | No | `-` | - |
|
|
331
|
+
| `markerHeight` | `string \| number` | No | `-` | - |
|
|
332
|
+
| `markerMid` | `string` | No | `-` | - |
|
|
333
|
+
| `markerStart` | `string` | No | `-` | - |
|
|
334
|
+
| `markerUnits` | `string \| number` | No | `-` | - |
|
|
335
|
+
| `markerWidth` | `string \| number` | No | `-` | - |
|
|
336
|
+
| `mask` | `string` | No | `-` | - |
|
|
337
|
+
| `maskContentUnits` | `string \| number` | No | `-` | - |
|
|
338
|
+
| `maskUnits` | `string \| number` | No | `-` | - |
|
|
339
|
+
| `mathematical` | `string \| number` | No | `-` | - |
|
|
340
|
+
| `max` | `string \| number` | No | `-` | - |
|
|
341
|
+
| `maxHeight` | `ResponsiveProp<MaxHeight<string \| number>>` | No | `-` | - |
|
|
342
|
+
| `maxWidth` | `ResponsiveProp<MaxWidth<string \| number>>` | No | `-` | - |
|
|
343
|
+
| `media` | `string` | No | `-` | - |
|
|
344
|
+
| `method` | `string` | No | `-` | - |
|
|
345
|
+
| `min` | `string \| number` | No | `-` | - |
|
|
346
|
+
| `minHeight` | `ResponsiveProp<MinHeight<string \| number>>` | No | `-` | - |
|
|
347
|
+
| `minWidth` | `ResponsiveProp<MinWidth<string \| number>>` | No | `-` | - |
|
|
348
|
+
| `mode` | `string \| number` | No | `-` | - |
|
|
349
|
+
| `name` | `string` | No | `-` | - |
|
|
350
|
+
| `numOctaves` | `string \| number` | No | `-` | - |
|
|
351
|
+
| `offset` | `string \| number` | No | `-` | - |
|
|
352
|
+
| `onChange` | `FormEventHandler<SVGSVGElement>` | No | `-` | - |
|
|
353
|
+
| `onScrubberPositionChange` | `((index: number) => void) \| undefined` | No | `-` | Callback fired when the scrubber position changes. Receives the dataIndex of the scrubber or undefined when not scrubbing. |
|
|
354
|
+
| `opacity` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset` | No | `-` | - |
|
|
355
|
+
| `operator` | `string \| number` | No | `-` | - |
|
|
356
|
+
| `order` | `string \| number` | No | `-` | - |
|
|
357
|
+
| `orient` | `string \| number` | No | `-` | - |
|
|
358
|
+
| `orientation` | `string \| number` | No | `-` | - |
|
|
359
|
+
| `origin` | `string \| number` | No | `-` | - |
|
|
360
|
+
| `overflow` | `ResponsiveProp<clip \| auto \| visible \| hidden \| scroll>` | No | `-` | - |
|
|
361
|
+
| `overlinePosition` | `string \| number` | No | `-` | - |
|
|
362
|
+
| `overlineThickness` | `string \| number` | No | `-` | - |
|
|
363
|
+
| `padding` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
364
|
+
| `paddingBottom` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
365
|
+
| `paddingEnd` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
366
|
+
| `paddingStart` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
367
|
+
| `paddingTop` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
368
|
+
| `paddingX` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
369
|
+
| `paddingY` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
370
|
+
| `paintOrder` | `string \| number` | No | `-` | - |
|
|
371
|
+
| `panose1` | `string \| number` | No | `-` | - |
|
|
372
|
+
| `path` | `string` | No | `-` | - |
|
|
373
|
+
| `pathLength` | `string \| number` | No | `-` | - |
|
|
374
|
+
| `patternContentUnits` | `string` | No | `-` | - |
|
|
375
|
+
| `patternTransform` | `string \| number` | No | `-` | - |
|
|
376
|
+
| `patternUnits` | `string` | No | `-` | - |
|
|
377
|
+
| `pin` | `top \| bottom \| left \| right \| all` | No | `-` | Direction in which to absolutely pin the box. |
|
|
378
|
+
| `pointerEvents` | `string \| number` | No | `-` | - |
|
|
379
|
+
| `points` | `string` | No | `-` | - |
|
|
380
|
+
| `pointsAtX` | `string \| number` | No | `-` | - |
|
|
381
|
+
| `pointsAtY` | `string \| number` | No | `-` | - |
|
|
382
|
+
| `pointsAtZ` | `string \| number` | No | `-` | - |
|
|
383
|
+
| `position` | `ResponsiveProp<static \| relative \| absolute \| fixed \| sticky>` | No | `-` | - |
|
|
384
|
+
| `preserveAlpha` | `false \| true \| true \| false` | No | `-` | - |
|
|
385
|
+
| `preserveAspectRatio` | `string` | No | `-` | - |
|
|
386
|
+
| `primitiveUnits` | `string \| number` | No | `-` | - |
|
|
387
|
+
| `r` | `string \| number` | No | `-` | - |
|
|
388
|
+
| `radius` | `string \| number` | No | `-` | - |
|
|
389
|
+
| `ref` | `((instance: SVGSVGElement \| null) => void) \| RefObject<SVGSVGElement> \| null` | No | `-` | - |
|
|
390
|
+
| `refX` | `string \| number` | No | `-` | - |
|
|
391
|
+
| `refY` | `string \| number` | No | `-` | - |
|
|
392
|
+
| `renderingIntent` | `string \| number` | No | `-` | - |
|
|
393
|
+
| `repeatCount` | `string \| number` | No | `-` | - |
|
|
394
|
+
| `repeatDur` | `string \| number` | No | `-` | - |
|
|
395
|
+
| `requiredExtensions` | `string \| number` | No | `-` | - |
|
|
396
|
+
| `requiredFeatures` | `string \| number` | No | `-` | - |
|
|
397
|
+
| `restart` | `string \| number` | No | `-` | - |
|
|
398
|
+
| `result` | `string` | No | `-` | - |
|
|
399
|
+
| `right` | `ResponsiveProp<Right<string \| number>>` | No | `-` | - |
|
|
400
|
+
| `role` | `grid \| article \| button \| dialog \| figure \| form \| img \| link \| main \| menu \| menuitem \| option \| search \| table \| switch \| string & {} \| none \| row \| alert \| alertdialog \| application \| banner \| cell \| checkbox \| columnheader \| combobox \| complementary \| contentinfo \| definition \| directory \| document \| feed \| gridcell \| group \| heading \| list \| listbox \| listitem \| log \| marquee \| math \| menubar \| menuitemcheckbox \| menuitemradio \| navigation \| note \| presentation \| progressbar \| radio \| radiogroup \| region \| rowgroup \| rowheader \| scrollbar \| searchbox \| separator \| slider \| spinbutton \| status \| tab \| tablist \| tabpanel \| term \| textbox \| timer \| toolbar \| tooltip \| tree \| treegrid \| treeitem` | No | `-` | - |
|
|
401
|
+
| `rotate` | `string \| number` | No | `-` | - |
|
|
402
|
+
| `rowGap` | `0 \| 5 \| 10 \| 0.25 \| 0.5 \| 0.75 \| 1 \| 1.5 \| 2 \| 3 \| 4 \| 6 \| 7 \| 8 \| 9` | No | `-` | - |
|
|
403
|
+
| `rx` | `string \| number` | No | `-` | - |
|
|
404
|
+
| `ry` | `string \| number` | No | `-` | - |
|
|
405
|
+
| `scale` | `string \| number` | No | `-` | - |
|
|
406
|
+
| `seed` | `string \| number` | No | `-` | - |
|
|
407
|
+
| `series` | `AreaSeries[]` | No | `-` | Configuration objects that define how to visualize the data. Each series supports Area and Line component props for individual customization. |
|
|
408
|
+
| `shapeRendering` | `string \| number` | No | `-` | - |
|
|
409
|
+
| `showLines` | `boolean` | No | `-` | Whether to show lines on top of the areas. Useful for stacked contexts to show the outline of each area. |
|
|
410
|
+
| `showXAxis` | `boolean` | No | `-` | Whether to show the X axis. |
|
|
411
|
+
| `showYAxis` | `boolean` | No | `-` | Whether to show the Y axis. |
|
|
412
|
+
| `slope` | `string \| number` | No | `-` | - |
|
|
413
|
+
| `spacing` | `string \| number` | No | `-` | - |
|
|
414
|
+
| `specularConstant` | `string \| number` | No | `-` | - |
|
|
415
|
+
| `specularExponent` | `string \| number` | No | `-` | - |
|
|
416
|
+
| `speed` | `string \| number` | No | `-` | - |
|
|
417
|
+
| `spreadMethod` | `string` | No | `-` | - |
|
|
418
|
+
| `stacked` | `boolean` | No | `-` | Whether to stack the areas on top of each other. When true, each series builds cumulative values on top of the previous series. **Note**: Only applies to series data containing singular numbers (e.g., [10, 20, 30]). Series with [baseline, value] tuples (e.g., [[0, 10], [0, -5]]) will be skipped during stacking and rendered as-is. |
|
|
419
|
+
| `startOffset` | `string \| number` | No | `-` | - |
|
|
420
|
+
| `stdDeviation` | `string \| number` | No | `-` | - |
|
|
421
|
+
| `stemh` | `string \| number` | No | `-` | - |
|
|
422
|
+
| `stemv` | `string \| number` | No | `-` | - |
|
|
423
|
+
| `stitchTiles` | `string \| number` | No | `-` | - |
|
|
424
|
+
| `stopColor` | `string` | No | `-` | - |
|
|
425
|
+
| `stopOpacity` | `string \| number` | No | `-` | - |
|
|
426
|
+
| `strikethroughPosition` | `string \| number` | No | `-` | - |
|
|
427
|
+
| `strikethroughThickness` | `string \| number` | No | `-` | - |
|
|
428
|
+
| `string` | `string \| number` | No | `-` | - |
|
|
429
|
+
| `stroke` | `string` | No | `-` | - |
|
|
430
|
+
| `strokeDasharray` | `string \| number` | No | `-` | - |
|
|
431
|
+
| `strokeDashoffset` | `string \| number` | No | `-` | - |
|
|
432
|
+
| `strokeLinecap` | `inherit \| butt \| round \| square` | No | `-` | - |
|
|
433
|
+
| `strokeLinejoin` | `inherit \| round \| miter \| bevel` | No | `-` | - |
|
|
434
|
+
| `strokeMiterlimit` | `string \| number` | No | `-` | - |
|
|
435
|
+
| `strokeOpacity` | `string \| number` | No | `-` | - |
|
|
436
|
+
| `strokeWidth` | `number` | No | `-` | - |
|
|
437
|
+
| `style` | `CSSProperties` | No | `-` | - |
|
|
438
|
+
| `suppressHydrationWarning` | `boolean` | No | `-` | - |
|
|
439
|
+
| `surfaceScale` | `string \| number` | No | `-` | - |
|
|
440
|
+
| `systemLanguage` | `string \| number` | No | `-` | - |
|
|
441
|
+
| `tabIndex` | `number` | No | `-` | - |
|
|
442
|
+
| `tableValues` | `string \| number` | No | `-` | - |
|
|
443
|
+
| `target` | `string` | No | `-` | - |
|
|
444
|
+
| `targetX` | `string \| number` | No | `-` | - |
|
|
445
|
+
| `targetY` | `string \| number` | No | `-` | - |
|
|
446
|
+
| `testID` | `string` | No | `-` | Used to locate this element in unit and end-to-end tests. Under the hood, testID translates to data-testid on Web. On Mobile, testID stays the same - testID |
|
|
447
|
+
| `textAlign` | `ResponsiveProp<center \| end \| start \| justify>` | No | `-` | - |
|
|
448
|
+
| `textAnchor` | `string` | No | `-` | - |
|
|
449
|
+
| `textDecoration` | `ResponsiveProp<none \| underline \| overline \| line-through \| underline overline \| underline double>` | No | `-` | - |
|
|
450
|
+
| `textLength` | `string \| number` | No | `-` | - |
|
|
451
|
+
| `textRendering` | `string \| number` | No | `-` | - |
|
|
452
|
+
| `textTransform` | `ResponsiveProp<capitalize \| lowercase \| none \| uppercase>` | No | `-` | - |
|
|
453
|
+
| `to` | `string \| number` | No | `-` | - |
|
|
454
|
+
| `top` | `ResponsiveProp<Top<string \| number>>` | No | `-` | - |
|
|
455
|
+
| `transform` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| none` | No | `-` | - |
|
|
456
|
+
| `type` | `dotted \| solid \| gradient` | No | `'solid'` | The type of area to render. |
|
|
457
|
+
| `u1` | `string \| number` | No | `-` | - |
|
|
458
|
+
| `u2` | `string \| number` | No | `-` | - |
|
|
459
|
+
| `underlinePosition` | `string \| number` | No | `-` | - |
|
|
460
|
+
| `underlineThickness` | `string \| number` | No | `-` | - |
|
|
461
|
+
| `unicode` | `string \| number` | No | `-` | - |
|
|
462
|
+
| `unicodeBidi` | `string \| number` | No | `-` | - |
|
|
463
|
+
| `unicodeRange` | `string \| number` | No | `-` | - |
|
|
464
|
+
| `unitsPerEm` | `string \| number` | No | `-` | - |
|
|
465
|
+
| `userSelect` | `ResponsiveProp<text \| none \| auto \| all>` | No | `-` | - |
|
|
466
|
+
| `vAlphabetic` | `string \| number` | No | `-` | - |
|
|
467
|
+
| `vHanging` | `string \| number` | No | `-` | - |
|
|
468
|
+
| `vIdeographic` | `string \| number` | No | `-` | - |
|
|
469
|
+
| `vMathematical` | `string \| number` | No | `-` | - |
|
|
470
|
+
| `values` | `string` | No | `-` | - |
|
|
471
|
+
| `vectorEffect` | `string \| number` | No | `-` | - |
|
|
472
|
+
| `version` | `string` | No | `-` | - |
|
|
473
|
+
| `vertAdvY` | `string \| number` | No | `-` | - |
|
|
474
|
+
| `vertOriginX` | `string \| number` | No | `-` | - |
|
|
475
|
+
| `vertOriginY` | `string \| number` | No | `-` | - |
|
|
476
|
+
| `viewBox` | `string` | No | `-` | - |
|
|
477
|
+
| `viewTarget` | `string \| number` | No | `-` | - |
|
|
478
|
+
| `visibility` | `ResponsiveProp<visible \| hidden>` | No | `-` | - |
|
|
479
|
+
| `width` | `ResponsiveProp<Width<string \| number>>` | No | `-` | - |
|
|
480
|
+
| `widths` | `string \| number` | No | `-` | - |
|
|
481
|
+
| `wordSpacing` | `string \| number` | No | `-` | - |
|
|
482
|
+
| `writingMode` | `string \| number` | No | `-` | - |
|
|
483
|
+
| `x` | `string \| number` | No | `-` | - |
|
|
484
|
+
| `x1` | `string \| number` | No | `-` | - |
|
|
485
|
+
| `x2` | `string \| number` | No | `-` | - |
|
|
486
|
+
| `xAxis` | `(Partial<AxisConfigProps> & AxisBaseProps & { className?: string; classNames?: { root?: string \| undefined; tickLabel?: string \| undefined; gridLine?: string \| undefined; line?: string \| undefined; tickMark?: string \| undefined; } \| undefined; style?: CSSProperties \| undefined; styles?: { root?: CSSProperties \| undefined; tickLabel?: CSSProperties \| undefined; gridLine?: CSSProperties \| undefined; line?: CSSProperties \| undefined; tickMark?: CSSProperties \| undefined; } \| undefined; } & { position?: top \| bottom \| undefined; height?: number \| undefined; }) \| undefined` | No | `-` | - |
|
|
487
|
+
| `xChannelSelector` | `string` | No | `-` | - |
|
|
488
|
+
| `xHeight` | `string \| number` | No | `-` | - |
|
|
489
|
+
| `xlinkActuate` | `string` | No | `-` | - |
|
|
490
|
+
| `xlinkArcrole` | `string` | No | `-` | - |
|
|
491
|
+
| `xlinkHref` | `string` | No | `-` | - |
|
|
492
|
+
| `xlinkRole` | `string` | No | `-` | - |
|
|
493
|
+
| `xlinkShow` | `string` | No | `-` | - |
|
|
494
|
+
| `xlinkTitle` | `string` | No | `-` | - |
|
|
495
|
+
| `xlinkType` | `string` | No | `-` | - |
|
|
496
|
+
| `xmlBase` | `string` | No | `-` | - |
|
|
497
|
+
| `xmlLang` | `string` | No | `-` | - |
|
|
498
|
+
| `xmlSpace` | `string` | No | `-` | - |
|
|
499
|
+
| `xmlns` | `string` | No | `-` | - |
|
|
500
|
+
| `xmlnsXlink` | `string` | No | `-` | - |
|
|
501
|
+
| `y` | `string \| number` | No | `-` | - |
|
|
502
|
+
| `y1` | `string \| number` | No | `-` | - |
|
|
503
|
+
| `y2` | `string \| number` | No | `-` | - |
|
|
504
|
+
| `yAxis` | `(Partial<AxisConfigProps> & AxisBaseProps & { className?: string; classNames?: { root?: string \| undefined; tickLabel?: string \| undefined; gridLine?: string \| undefined; line?: string \| undefined; tickMark?: string \| undefined; } \| undefined; style?: CSSProperties \| undefined; styles?: { root?: CSSProperties \| undefined; tickLabel?: CSSProperties \| undefined; gridLine?: CSSProperties \| undefined; line?: CSSProperties \| undefined; tickMark?: CSSProperties \| undefined; } \| undefined; } & { axisId?: string \| undefined; position?: left \| right \| undefined; width?: number \| undefined; }) \| undefined` | No | `-` | - |
|
|
505
|
+
| `yChannelSelector` | `string` | No | `-` | - |
|
|
506
|
+
| `z` | `string \| number` | No | `-` | - |
|
|
507
|
+
| `zIndex` | `-moz-initial \| inherit \| initial \| revert \| revert-layer \| unset \| auto` | No | `-` | - |
|
|
508
|
+
| `zoomAndPan` | `string` | No | `-` | - |
|
|
509
|
+
|
|
510
|
+
|