@coinbase/cds-mcp-server 8.21.8 → 8.22.2
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 +12 -0
- package/mcp-docs/mobile/components/AreaChart.txt +39 -37
- package/mcp-docs/mobile/components/Avatar.txt +18 -18
- package/mcp-docs/mobile/components/AvatarButton.txt +19 -19
- package/mcp-docs/mobile/components/Banner.txt +62 -23
- package/mcp-docs/mobile/components/BarChart.txt +37 -35
- package/mcp-docs/mobile/components/Box.txt +18 -18
- package/mcp-docs/mobile/components/BrowserBar.txt +18 -18
- package/mcp-docs/mobile/components/Button.txt +19 -19
- package/mcp-docs/mobile/components/Carousel.txt +18 -18
- package/mcp-docs/mobile/components/CartesianChart.txt +75 -44
- package/mcp-docs/mobile/components/CheckboxCell.txt +19 -19
- package/mcp-docs/mobile/components/Chip.txt +20 -20
- package/mcp-docs/mobile/components/Coachmark.txt +18 -18
- package/mcp-docs/mobile/components/ContentCard.txt +18 -18
- package/mcp-docs/mobile/components/ContentCardBody.txt +18 -18
- package/mcp-docs/mobile/components/ContentCardFooter.txt +18 -18
- package/mcp-docs/mobile/components/ContentCardHeader.txt +18 -18
- package/mcp-docs/mobile/components/ContentCell.txt +18 -18
- package/mcp-docs/mobile/components/ControlGroup.txt +18 -18
- package/mcp-docs/mobile/components/DatePicker.txt +1 -1
- package/mcp-docs/mobile/components/Divider.txt +18 -18
- package/mcp-docs/mobile/components/DotCount.txt +1 -1
- package/mcp-docs/mobile/components/DotSymbol.txt +2 -2
- package/mcp-docs/mobile/components/Fallback.txt +18 -18
- package/mcp-docs/mobile/components/HStack.txt +18 -18
- package/mcp-docs/mobile/components/Icon.txt +6 -0
- package/mcp-docs/mobile/components/IconButton.txt +19 -19
- package/mcp-docs/mobile/components/InputChip.txt +20 -20
- package/mcp-docs/mobile/components/Interactable.txt +19 -19
- package/mcp-docs/mobile/components/LineChart.txt +1608 -898
- package/mcp-docs/mobile/components/Link.txt +18 -18
- package/mcp-docs/mobile/components/ListCell.txt +37 -19
- package/mcp-docs/mobile/components/Lottie.txt +18 -18
- package/mcp-docs/mobile/components/MediaChip.txt +20 -20
- package/mcp-docs/mobile/components/MultiContentModule.txt +18 -18
- package/mcp-docs/mobile/components/NavigationTitle.txt +18 -18
- package/mcp-docs/mobile/components/NavigationTitleSelect.txt +18 -18
- package/mcp-docs/mobile/components/Numpad.txt +18 -18
- package/mcp-docs/mobile/components/Overlay.txt +18 -18
- package/mcp-docs/mobile/components/PageFooter.txt +17 -17
- package/mcp-docs/mobile/components/PageHeader.txt +17 -17
- package/mcp-docs/mobile/components/PeriodSelector.txt +26 -26
- package/mcp-docs/mobile/components/Point.txt +203 -98
- package/mcp-docs/mobile/components/Pressable.txt +19 -19
- package/mcp-docs/mobile/components/ProgressBar.txt +1 -1
- package/mcp-docs/mobile/components/ProgressBarWithFixedLabels.txt +1 -1
- package/mcp-docs/mobile/components/ProgressBarWithFloatLabel.txt +1 -1
- package/mcp-docs/mobile/components/ProgressCircle.txt +1 -1
- package/mcp-docs/mobile/components/RadioCell.txt +19 -19
- package/mcp-docs/mobile/components/ReferenceLine.txt +197 -54
- package/mcp-docs/mobile/components/RollingNumber.txt +18 -18
- package/mcp-docs/mobile/components/Scrubber.txt +597 -79
- package/mcp-docs/mobile/components/SegmentedTabs.txt +18 -18
- package/mcp-docs/mobile/components/SelectAlpha.txt +1 -1
- package/mcp-docs/mobile/components/SelectChip.txt +20 -20
- package/mcp-docs/mobile/components/SlideButton.txt +19 -19
- package/mcp-docs/mobile/components/Spacer.txt +6 -6
- package/mcp-docs/mobile/components/SparklineInteractive.txt +3 -3
- package/mcp-docs/mobile/components/Spinner.txt +1 -1
- package/mcp-docs/mobile/components/Stepper.txt +18 -18
- package/mcp-docs/mobile/components/TabLabel.txt +18 -18
- package/mcp-docs/mobile/components/TabNavigation.txt +18 -18
- package/mcp-docs/mobile/components/TabbedChips.txt +18 -18
- package/mcp-docs/mobile/components/TabbedChipsAlpha.txt +1 -1
- package/mcp-docs/mobile/components/Tabs.txt +18 -18
- package/mcp-docs/mobile/components/Tag.txt +18 -18
- package/mcp-docs/mobile/components/Text.txt +18 -18
- package/mcp-docs/mobile/components/Toast.txt +18 -18
- package/mcp-docs/mobile/components/Tooltip.txt +17 -1
- package/mcp-docs/mobile/components/TopNavBar.txt +18 -18
- package/mcp-docs/mobile/components/VStack.txt +18 -18
- package/mcp-docs/mobile/components/XAxis.txt +86 -24
- package/mcp-docs/mobile/components/YAxis.txt +75 -17
- package/mcp-docs/mobile/routes.txt +1 -1
- package/mcp-docs/web/components/AreaChart.txt +523 -301
- package/mcp-docs/web/components/Avatar.txt +27 -27
- package/mcp-docs/web/components/AvatarButton.txt +28 -28
- package/mcp-docs/web/components/Banner.txt +71 -32
- package/mcp-docs/web/components/BarChart.txt +182 -313
- package/mcp-docs/web/components/Box.txt +28 -28
- package/mcp-docs/web/components/Button.txt +28 -28
- package/mcp-docs/web/components/Calendar.txt +27 -27
- package/mcp-docs/web/components/Carousel.txt +27 -27
- package/mcp-docs/web/components/CartesianChart.txt +62 -309
- package/mcp-docs/web/components/CheckboxCell.txt +25 -25
- package/mcp-docs/web/components/Chip.txt +27 -27
- package/mcp-docs/web/components/Coachmark.txt +27 -27
- package/mcp-docs/web/components/ContainedAssetCard.txt +27 -27
- package/mcp-docs/web/components/ContentCard.txt +28 -28
- package/mcp-docs/web/components/ContentCardBody.txt +28 -28
- package/mcp-docs/web/components/ContentCardFooter.txt +28 -28
- package/mcp-docs/web/components/ContentCardHeader.txt +28 -28
- package/mcp-docs/web/components/ContentCell.txt +28 -28
- package/mcp-docs/web/components/ControlGroup.txt +27 -27
- package/mcp-docs/web/components/Divider.txt +27 -27
- package/mcp-docs/web/components/Fallback.txt +28 -28
- package/mcp-docs/web/components/FloatingAssetCard.txt +27 -27
- package/mcp-docs/web/components/Grid.txt +28 -28
- package/mcp-docs/web/components/GridColumn.txt +27 -27
- package/mcp-docs/web/components/HStack.txt +28 -28
- package/mcp-docs/web/components/Icon.txt +27 -27
- package/mcp-docs/web/components/IconButton.txt +28 -28
- package/mcp-docs/web/components/InputChip.txt +27 -27
- package/mcp-docs/web/components/Interactable.txt +28 -28
- package/mcp-docs/web/components/LineChart.txt +1598 -1116
- package/mcp-docs/web/components/Link.txt +28 -28
- package/mcp-docs/web/components/ListCell.txt +48 -30
- package/mcp-docs/web/components/Lottie.txt +27 -27
- package/mcp-docs/web/components/MediaChip.txt +27 -27
- package/mcp-docs/web/components/Modal.txt +27 -27
- package/mcp-docs/web/components/ModalBody.txt +27 -27
- package/mcp-docs/web/components/ModalFooter.txt +27 -27
- package/mcp-docs/web/components/ModalHeader.txt +27 -27
- package/mcp-docs/web/components/MultiContentModule.txt +28 -28
- package/mcp-docs/web/components/NavigationBar.txt +5 -5
- package/mcp-docs/web/components/NudgeCard.txt +27 -27
- package/mcp-docs/web/components/Overlay.txt +27 -27
- package/mcp-docs/web/components/PageFooter.txt +26 -26
- package/mcp-docs/web/components/PageHeader.txt +26 -26
- package/mcp-docs/web/components/Pagination.txt +27 -27
- package/mcp-docs/web/components/PeriodSelector.txt +49 -49
- package/mcp-docs/web/components/Point.txt +228 -79
- package/mcp-docs/web/components/Pressable.txt +28 -28
- package/mcp-docs/web/components/RadioCell.txt +25 -25
- package/mcp-docs/web/components/ReferenceLine.txt +208 -60
- package/mcp-docs/web/components/RemoteImage.txt +26 -26
- package/mcp-docs/web/components/RollingNumber.txt +28 -28
- package/mcp-docs/web/components/Scrubber.txt +463 -68
- package/mcp-docs/web/components/SectionHeader.txt +27 -27
- package/mcp-docs/web/components/SegmentedTabs.txt +27 -27
- package/mcp-docs/web/components/SelectChip.txt +27 -27
- package/mcp-docs/web/components/SelectOption.txt +27 -27
- package/mcp-docs/web/components/Sidebar.txt +27 -27
- package/mcp-docs/web/components/SidebarItem.txt +27 -27
- package/mcp-docs/web/components/Spacer.txt +34 -34
- package/mcp-docs/web/components/SparklineInteractive.txt +1 -1
- package/mcp-docs/web/components/Spinner.txt +27 -27
- package/mcp-docs/web/components/Stepper.txt +27 -27
- package/mcp-docs/web/components/TabLabel.txt +27 -27
- package/mcp-docs/web/components/TabNavigation.txt +26 -26
- package/mcp-docs/web/components/TabbedChips.txt +26 -26
- package/mcp-docs/web/components/TabbedChipsAlpha.txt +1 -1
- package/mcp-docs/web/components/Tabs.txt +27 -27
- package/mcp-docs/web/components/Tag.txt +27 -27
- package/mcp-docs/web/components/Text.txt +28 -28
- package/mcp-docs/web/components/TileButton.txt +28 -28
- package/mcp-docs/web/components/Toast.txt +27 -27
- package/mcp-docs/web/components/Tooltip.txt +17 -1
- package/mcp-docs/web/components/VStack.txt +28 -28
- package/mcp-docs/web/components/XAxis.txt +86 -22
- package/mcp-docs/web/components/YAxis.txt +133 -89
- package/package.json +1 -1
|
@@ -26,7 +26,6 @@ AreaChart is a cartesian chart variant that allows for easy visualization of sta
|
|
|
26
26
|
]}
|
|
27
27
|
type="gradient"
|
|
28
28
|
showLines
|
|
29
|
-
curve="monotone"
|
|
30
29
|
showYAxis
|
|
31
30
|
yAxis={{
|
|
32
31
|
showGrid: true,
|
|
@@ -49,7 +48,6 @@ AreaChart is a cartesian chart variant that allows for easy visualization of sta
|
|
|
49
48
|
]}
|
|
50
49
|
type="gradient"
|
|
51
50
|
showLines
|
|
52
|
-
curve="monotone"
|
|
53
51
|
/>
|
|
54
52
|
```
|
|
55
53
|
|
|
@@ -144,38 +142,482 @@ You can have different area styles for each series.
|
|
|
144
142
|
/>
|
|
145
143
|
```
|
|
146
144
|
|
|
145
|
+
### Animations
|
|
146
|
+
|
|
147
|
+
You can configure chart transitions using the `transition` prop.
|
|
148
|
+
|
|
149
|
+
#### Customized Transitions
|
|
150
|
+
|
|
151
|
+
You can pass in a custom spring based transition to your `AreaChart` for a custom transition.
|
|
152
|
+
|
|
153
|
+
```jsx live
|
|
154
|
+
function AnimatedStackedAreas() {
|
|
155
|
+
const dataCount = 20;
|
|
156
|
+
const minYValue = 5000;
|
|
157
|
+
const maxDataOffset = 15000;
|
|
158
|
+
const minStepOffset = 2500;
|
|
159
|
+
const maxStepOffset = 10000;
|
|
160
|
+
const updateInterval = 500;
|
|
161
|
+
const seriesSpacing = 2000;
|
|
162
|
+
const myTransition = { type: 'spring', stiffness: 700, damping: 20 };
|
|
163
|
+
|
|
164
|
+
const seriesConfig = [
|
|
165
|
+
{ id: 'red', label: 'Red', color: 'rgb(var(--red40))' },
|
|
166
|
+
{ id: 'orange', label: 'Orange', color: 'rgb(var(--orange40))' },
|
|
167
|
+
{ id: 'yellow', label: 'Yellow', color: 'rgb(var(--yellow40))' },
|
|
168
|
+
{ id: 'green', label: 'Green', color: 'rgb(var(--green40))' },
|
|
169
|
+
{ id: 'blue', label: 'Blue', color: 'rgb(var(--blue40))' },
|
|
170
|
+
{ id: 'indigo', label: 'Indigo', color: 'rgb(var(--indigo40))' },
|
|
171
|
+
{ id: 'purple', label: 'Purple', color: 'rgb(var(--purple40))' },
|
|
172
|
+
];
|
|
173
|
+
|
|
174
|
+
const domainLimit = maxDataOffset + seriesConfig.length * seriesSpacing;
|
|
175
|
+
|
|
176
|
+
function generateNextValue(previousValue) {
|
|
177
|
+
const range = maxStepOffset - minStepOffset;
|
|
178
|
+
const offset = Math.random() * range + minStepOffset;
|
|
179
|
+
|
|
180
|
+
let direction;
|
|
181
|
+
if (previousValue >= maxDataOffset) {
|
|
182
|
+
direction = -1;
|
|
183
|
+
} else if (previousValue <= minYValue) {
|
|
184
|
+
direction = 1;
|
|
185
|
+
} else {
|
|
186
|
+
direction = Math.random() < 0.5 ? -1 : 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
let newValue = previousValue + offset * direction;
|
|
190
|
+
newValue = Math.max(minYValue, Math.min(maxDataOffset, newValue));
|
|
191
|
+
return newValue;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function generateInitialData() {
|
|
195
|
+
const data = [];
|
|
196
|
+
|
|
197
|
+
let previousValue = minYValue + Math.random() * (maxDataOffset - minYValue);
|
|
198
|
+
data.push(previousValue);
|
|
199
|
+
|
|
200
|
+
for (let i = 1; i < dataCount; i++) {
|
|
201
|
+
const newValue = generateNextValue(previousValue);
|
|
202
|
+
data.push(newValue);
|
|
203
|
+
previousValue = newValue;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return data;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const MemoizedDottedArea = memo((props) => (
|
|
210
|
+
<DottedArea {...props} baselineOpacity={1} peakOpacity={1} />
|
|
211
|
+
));
|
|
212
|
+
|
|
213
|
+
function AnimatedChart() {
|
|
214
|
+
const [data, setData] = useState(generateInitialData);
|
|
215
|
+
|
|
216
|
+
useEffect(() => {
|
|
217
|
+
const intervalId = setInterval(() => {
|
|
218
|
+
setData((currentData) => {
|
|
219
|
+
const lastValue = currentData[currentData.length - 1] ?? 0;
|
|
220
|
+
const newValue = generateNextValue(lastValue);
|
|
221
|
+
|
|
222
|
+
return [...currentData.slice(1), newValue];
|
|
223
|
+
});
|
|
224
|
+
}, updateInterval);
|
|
225
|
+
|
|
226
|
+
return () => clearInterval(intervalId);
|
|
227
|
+
}, []);
|
|
228
|
+
|
|
229
|
+
const series = seriesConfig.map((config, index) => ({
|
|
230
|
+
id: config.id,
|
|
231
|
+
label: config.label,
|
|
232
|
+
color: config.color,
|
|
233
|
+
data: index === 0 ? data : Array(dataCount).fill(seriesSpacing),
|
|
234
|
+
}));
|
|
235
|
+
|
|
236
|
+
return (
|
|
237
|
+
<AreaChart
|
|
238
|
+
overflow="visible"
|
|
239
|
+
stacked
|
|
240
|
+
height={{ base: 200, tablet: 250, desktop: 300 }}
|
|
241
|
+
series={series}
|
|
242
|
+
type="dotted"
|
|
243
|
+
showLines
|
|
244
|
+
AreaComponent={MemoizedDottedArea}
|
|
245
|
+
transition={myTransition}
|
|
246
|
+
inset={0}
|
|
247
|
+
showYAxis
|
|
248
|
+
yAxis={{
|
|
249
|
+
showGrid: true,
|
|
250
|
+
width: 0,
|
|
251
|
+
tickLabelFormatter: () => '',
|
|
252
|
+
domain: { min: 0, max: domainLimit },
|
|
253
|
+
}}
|
|
254
|
+
/>
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return <AnimatedChart />;
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
#### Disable Animations
|
|
263
|
+
|
|
264
|
+
You can also disable animations by setting the `animate` prop to `false`.
|
|
265
|
+
|
|
266
|
+
```jsx live
|
|
267
|
+
function AnimatedStackedAreas() {
|
|
268
|
+
const dataCount = 20;
|
|
269
|
+
const minYValue = 5000;
|
|
270
|
+
const maxDataOffset = 15000;
|
|
271
|
+
const minStepOffset = 2500;
|
|
272
|
+
const maxStepOffset = 10000;
|
|
273
|
+
const updateInterval = 500;
|
|
274
|
+
const seriesSpacing = 2000;
|
|
275
|
+
const myTransition = { type: 'spring', stiffness: 700, damping: 20 };
|
|
276
|
+
|
|
277
|
+
const seriesConfig = [
|
|
278
|
+
{ id: 'red', label: 'Red', color: 'rgb(var(--red40))' },
|
|
279
|
+
{ id: 'orange', label: 'Orange', color: 'rgb(var(--orange40))' },
|
|
280
|
+
{ id: 'yellow', label: 'Yellow', color: 'rgb(var(--yellow40))' },
|
|
281
|
+
{ id: 'green', label: 'Green', color: 'rgb(var(--green40))' },
|
|
282
|
+
{ id: 'blue', label: 'Blue', color: 'rgb(var(--blue40))' },
|
|
283
|
+
{ id: 'indigo', label: 'Indigo', color: 'rgb(var(--indigo40))' },
|
|
284
|
+
{ id: 'purple', label: 'Purple', color: 'rgb(var(--purple40))' },
|
|
285
|
+
];
|
|
286
|
+
|
|
287
|
+
const domainLimit = maxDataOffset + seriesConfig.length * seriesSpacing;
|
|
288
|
+
|
|
289
|
+
function generateNextValue(previousValue) {
|
|
290
|
+
const range = maxStepOffset - minStepOffset;
|
|
291
|
+
const offset = Math.random() * range + minStepOffset;
|
|
292
|
+
|
|
293
|
+
let direction;
|
|
294
|
+
if (previousValue >= maxDataOffset) {
|
|
295
|
+
direction = -1;
|
|
296
|
+
} else if (previousValue <= minYValue) {
|
|
297
|
+
direction = 1;
|
|
298
|
+
} else {
|
|
299
|
+
direction = Math.random() < 0.5 ? -1 : 1;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
let newValue = previousValue + offset * direction;
|
|
303
|
+
newValue = Math.max(minYValue, Math.min(maxDataOffset, newValue));
|
|
304
|
+
return newValue;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function generateInitialData() {
|
|
308
|
+
const data = [];
|
|
309
|
+
|
|
310
|
+
let previousValue = minYValue + Math.random() * (maxDataOffset - minYValue);
|
|
311
|
+
data.push(previousValue);
|
|
312
|
+
|
|
313
|
+
for (let i = 1; i < dataCount; i++) {
|
|
314
|
+
const newValue = generateNextValue(previousValue);
|
|
315
|
+
data.push(newValue);
|
|
316
|
+
previousValue = newValue;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return data;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const MemoizedDottedArea = memo((props) => (
|
|
323
|
+
<DottedArea {...props} baselineOpacity={1} peakOpacity={1} />
|
|
324
|
+
));
|
|
325
|
+
|
|
326
|
+
function AnimatedChart() {
|
|
327
|
+
const [data, setData] = useState(generateInitialData);
|
|
328
|
+
|
|
329
|
+
useEffect(() => {
|
|
330
|
+
const intervalId = setInterval(() => {
|
|
331
|
+
setData((currentData) => {
|
|
332
|
+
const lastValue = currentData[currentData.length - 1] ?? 0;
|
|
333
|
+
const newValue = generateNextValue(lastValue);
|
|
334
|
+
|
|
335
|
+
return [...currentData.slice(1), newValue];
|
|
336
|
+
});
|
|
337
|
+
}, updateInterval);
|
|
338
|
+
|
|
339
|
+
return () => clearInterval(intervalId);
|
|
340
|
+
}, []);
|
|
341
|
+
|
|
342
|
+
const series = seriesConfig.map((config, index) => ({
|
|
343
|
+
id: config.id,
|
|
344
|
+
label: config.label,
|
|
345
|
+
color: config.color,
|
|
346
|
+
// First series gets animated data, others get constant height
|
|
347
|
+
data: index === 0 ? data : Array(dataCount).fill(seriesSpacing),
|
|
348
|
+
}));
|
|
349
|
+
|
|
350
|
+
return (
|
|
351
|
+
<AreaChart
|
|
352
|
+
animate={false}
|
|
353
|
+
overflow="visible"
|
|
354
|
+
stacked
|
|
355
|
+
height={{ base: 200, tablet: 250, desktop: 300 }}
|
|
356
|
+
series={series}
|
|
357
|
+
type="dotted"
|
|
358
|
+
showLines
|
|
359
|
+
AreaComponent={MemoizedDottedArea}
|
|
360
|
+
inset={0}
|
|
361
|
+
showYAxis
|
|
362
|
+
yAxis={{
|
|
363
|
+
showGrid: true,
|
|
364
|
+
width: 0,
|
|
365
|
+
tickLabelFormatter: () => '',
|
|
366
|
+
domain: { min: 0, max: domainLimit },
|
|
367
|
+
}}
|
|
368
|
+
/>
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return <AnimatedChart />;
|
|
373
|
+
}
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Gradients
|
|
377
|
+
|
|
378
|
+
You can use the `gradient` prop on `series` or `Area` components to enable gradients.
|
|
379
|
+
|
|
380
|
+
Each stop requires an `offset`, which is based on the data within the x/y scale and `color`, with an optional `opacity` (defaults to 1).
|
|
381
|
+
|
|
382
|
+
Values in between stops will be interpolated smoothly using [srgb color space](https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty).
|
|
383
|
+
|
|
384
|
+
```jsx live
|
|
385
|
+
function ContinuousGradient() {
|
|
386
|
+
const spectrumColors = [
|
|
387
|
+
'blue',
|
|
388
|
+
'green',
|
|
389
|
+
'orange',
|
|
390
|
+
'yellow',
|
|
391
|
+
'gray',
|
|
392
|
+
'indigo',
|
|
393
|
+
'pink',
|
|
394
|
+
'purple',
|
|
395
|
+
'red',
|
|
396
|
+
'teal',
|
|
397
|
+
'chartreuse',
|
|
398
|
+
];
|
|
399
|
+
const data = [10, 22, 29, 45, 98, 45, 22, 52, 21, 4, 68, 20, 21, 58];
|
|
400
|
+
|
|
401
|
+
const [currentSpectrumColor, setCurrentSpectrumColor] = useState('pink');
|
|
402
|
+
|
|
403
|
+
return (
|
|
404
|
+
<VStack gap={2}>
|
|
405
|
+
<HStack gap={1} justifyContent="flex-end" flexWrap="wrap">
|
|
406
|
+
{spectrumColors.map((color) => (
|
|
407
|
+
<Pressable
|
|
408
|
+
key={color}
|
|
409
|
+
onClick={() => setCurrentSpectrumColor(color)}
|
|
410
|
+
accessibilityLabel={`Select ${color}`}
|
|
411
|
+
style={{
|
|
412
|
+
backgroundColor: `rgb(var(--${color}20))`,
|
|
413
|
+
border: `2px solid rgb(var(--${color}50))`,
|
|
414
|
+
outlineColor: `rgb(var(--${color}80))`,
|
|
415
|
+
outline:
|
|
416
|
+
currentSpectrumColor === color ? `2px solid rgb(var(--${color}80))` : undefined,
|
|
417
|
+
}}
|
|
418
|
+
width={{ base: 16, tablet: 24, desktop: 24 }}
|
|
419
|
+
height={{ base: 16, tablet: 24, desktop: 24 }}
|
|
420
|
+
borderRadius={1000}
|
|
421
|
+
/>
|
|
422
|
+
))}
|
|
423
|
+
</HStack>
|
|
424
|
+
<AreaChart
|
|
425
|
+
enableScrubbing
|
|
426
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
427
|
+
series={[
|
|
428
|
+
{
|
|
429
|
+
id: 'prices',
|
|
430
|
+
data: data,
|
|
431
|
+
gradient: {
|
|
432
|
+
stops: ({ min, max }) => [
|
|
433
|
+
// Allows a function which accepts min/max or direct array
|
|
434
|
+
{ offset: min, color: `rgb(var(--${currentSpectrumColor}80))` },
|
|
435
|
+
{ offset: max, color: `rgb(var(--${currentSpectrumColor}20))` },
|
|
436
|
+
],
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
]}
|
|
440
|
+
showYAxis
|
|
441
|
+
yAxis={{
|
|
442
|
+
showGrid: true,
|
|
443
|
+
}}
|
|
444
|
+
>
|
|
445
|
+
<Scrubber />
|
|
446
|
+
</AreaChart>
|
|
447
|
+
</VStack>
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
#### Discrete
|
|
453
|
+
|
|
454
|
+
You can set multiple stops at the same offset to create a discrete gradient.
|
|
455
|
+
|
|
456
|
+
```jsx live
|
|
457
|
+
function DiscreteGradient() {
|
|
458
|
+
const spectrumColors = [
|
|
459
|
+
'blue',
|
|
460
|
+
'green',
|
|
461
|
+
'orange',
|
|
462
|
+
'yellow',
|
|
463
|
+
'gray',
|
|
464
|
+
'indigo',
|
|
465
|
+
'pink',
|
|
466
|
+
'purple',
|
|
467
|
+
'red',
|
|
468
|
+
'teal',
|
|
469
|
+
'chartreuse',
|
|
470
|
+
];
|
|
471
|
+
const data = [10, 22, 29, 45, 98, 45, 22, 52, 21, 4, 68, 20, 21, 58];
|
|
472
|
+
|
|
473
|
+
const [currentSpectrumColor, setCurrentSpectrumColor] = useState('pink');
|
|
474
|
+
|
|
475
|
+
return (
|
|
476
|
+
<VStack gap={2}>
|
|
477
|
+
<HStack gap={1} justifyContent="flex-end" flexWrap="wrap">
|
|
478
|
+
{spectrumColors.map((color) => (
|
|
479
|
+
<Pressable
|
|
480
|
+
key={color}
|
|
481
|
+
onClick={() => setCurrentSpectrumColor(color)}
|
|
482
|
+
accessibilityLabel={`Select ${color}`}
|
|
483
|
+
style={{
|
|
484
|
+
backgroundColor: `rgb(var(--${color}20))`,
|
|
485
|
+
border: `2px solid rgb(var(--${color}50))`,
|
|
486
|
+
outlineColor: `rgb(var(--${color}80))`,
|
|
487
|
+
outline:
|
|
488
|
+
currentSpectrumColor === color ? `2px solid rgb(var(--${color}80))` : undefined,
|
|
489
|
+
}}
|
|
490
|
+
width={{ base: 16, tablet: 24, desktop: 24 }}
|
|
491
|
+
height={{ base: 16, tablet: 24, desktop: 24 }}
|
|
492
|
+
borderRadius={1000}
|
|
493
|
+
/>
|
|
494
|
+
))}
|
|
495
|
+
</HStack>
|
|
496
|
+
<AreaChart
|
|
497
|
+
enableScrubbing
|
|
498
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
499
|
+
series={[
|
|
500
|
+
{
|
|
501
|
+
id: 'prices',
|
|
502
|
+
data: data,
|
|
503
|
+
gradient: {
|
|
504
|
+
stops: ({ min, max }) => [
|
|
505
|
+
{ offset: min, color: `rgb(var(--${currentSpectrumColor}80))` },
|
|
506
|
+
{ offset: min + (max - min) / 3, color: `rgb(var(--${currentSpectrumColor}80))` },
|
|
507
|
+
{ offset: min + (max - min) / 3, color: `rgb(var(--${currentSpectrumColor}50))` },
|
|
508
|
+
{
|
|
509
|
+
offset: min + ((max - min) / 3) * 2,
|
|
510
|
+
color: `rgb(var(--${currentSpectrumColor}50))`,
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
offset: min + ((max - min) / 3) * 2,
|
|
514
|
+
color: `rgb(var(--${currentSpectrumColor}20))`,
|
|
515
|
+
},
|
|
516
|
+
{ offset: max, color: `rgb(var(--${currentSpectrumColor}20))` },
|
|
517
|
+
],
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
]}
|
|
521
|
+
showLines
|
|
522
|
+
strokeWidth={4}
|
|
523
|
+
showYAxis
|
|
524
|
+
yAxis={{
|
|
525
|
+
showGrid: true,
|
|
526
|
+
}}
|
|
527
|
+
fillOpacity={0.5}
|
|
528
|
+
>
|
|
529
|
+
<Scrubber />
|
|
530
|
+
</AreaChart>
|
|
531
|
+
</VStack>
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
#### Axes
|
|
537
|
+
|
|
538
|
+
By default, gradients will be applied to the y-axis. You can apply a gradient to the x-axis by setting `axis` to `x` in the gradient definition.
|
|
539
|
+
|
|
540
|
+
```jsx live
|
|
541
|
+
function XAxisGradient() {
|
|
542
|
+
const spectrumColors = [
|
|
543
|
+
'blue',
|
|
544
|
+
'green',
|
|
545
|
+
'orange',
|
|
546
|
+
'yellow',
|
|
547
|
+
'gray',
|
|
548
|
+
'indigo',
|
|
549
|
+
'pink',
|
|
550
|
+
'purple',
|
|
551
|
+
'red',
|
|
552
|
+
'teal',
|
|
553
|
+
'chartreuse',
|
|
554
|
+
];
|
|
555
|
+
const data = [10, 22, 29, 45, 98, 45, 22, 52, 21, 4, 68, 20, 21, 58];
|
|
556
|
+
|
|
557
|
+
const [currentSpectrumColor, setCurrentSpectrumColor] = useState('pink');
|
|
558
|
+
|
|
559
|
+
return (
|
|
560
|
+
<VStack gap={2}>
|
|
561
|
+
<HStack gap={1} justifyContent="flex-end" flexWrap="wrap">
|
|
562
|
+
{spectrumColors.map((color) => (
|
|
563
|
+
<Pressable
|
|
564
|
+
key={color}
|
|
565
|
+
onClick={() => setCurrentSpectrumColor(color)}
|
|
566
|
+
accessibilityLabel={`Select ${color}`}
|
|
567
|
+
style={{
|
|
568
|
+
backgroundColor: `rgb(var(--${color}20))`,
|
|
569
|
+
border: `2px solid rgb(var(--${color}50))`,
|
|
570
|
+
outlineColor: `rgb(var(--${color}80))`,
|
|
571
|
+
outline:
|
|
572
|
+
currentSpectrumColor === color ? `2px solid rgb(var(--${color}80))` : undefined,
|
|
573
|
+
}}
|
|
574
|
+
width={{ base: 16, tablet: 24, desktop: 24 }}
|
|
575
|
+
height={{ base: 16, tablet: 24, desktop: 24 }}
|
|
576
|
+
borderRadius={1000}
|
|
577
|
+
/>
|
|
578
|
+
))}
|
|
579
|
+
</HStack>
|
|
580
|
+
<AreaChart
|
|
581
|
+
enableScrubbing
|
|
582
|
+
height={{ base: 150, tablet: 200, desktop: 250 }}
|
|
583
|
+
series={[
|
|
584
|
+
{
|
|
585
|
+
id: 'prices',
|
|
586
|
+
data: data,
|
|
587
|
+
gradient: {
|
|
588
|
+
axis: 'x',
|
|
589
|
+
stops: ({ min, max }) => [
|
|
590
|
+
{ offset: min, color: `rgb(var(--${currentSpectrumColor}80))`, opacity: 0 },
|
|
591
|
+
{ offset: max, color: `rgb(var(--${currentSpectrumColor}20))`, opacity: 1 },
|
|
592
|
+
],
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
]}
|
|
596
|
+
showYAxis
|
|
597
|
+
yAxis={{
|
|
598
|
+
showGrid: true,
|
|
599
|
+
}}
|
|
600
|
+
>
|
|
601
|
+
<Scrubber />
|
|
602
|
+
</AreaChart>
|
|
603
|
+
</VStack>
|
|
604
|
+
);
|
|
605
|
+
}
|
|
606
|
+
```
|
|
607
|
+
|
|
147
608
|
## Props
|
|
148
609
|
|
|
149
610
|
| Prop | Type | Required | Default | Description |
|
|
150
611
|
| --- | --- | --- | --- | --- |
|
|
151
612
|
| `AreaComponent` | `AreaComponent` | No | `-` | Component to render the area. Takes precedence over the type prop if provided. |
|
|
152
613
|
| `LineComponent` | `LineComponent` | No | `-` | Component to render the line. Takes precedence over the type prop if provided. |
|
|
153
|
-
| `
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
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 | `-` | - |
|
|
614
|
+
| `alignContent` | `ResponsiveProp<center \| normal \| start \| end \| flex-start \| flex-end \| space-between \| space-around \| space-evenly \| stretch \| baseline \| first baseline \| last baseline>` | No | `-` | - |
|
|
615
|
+
| `alignItems` | `ResponsiveProp<center \| normal \| start \| end \| flex-start \| flex-end \| stretch \| baseline \| first baseline \| last baseline \| self-start \| self-end>` | No | `-` | - |
|
|
616
|
+
| `alignSelf` | `ResponsiveProp<center \| auto \| normal \| start \| end \| flex-start \| flex-end \| stretch \| baseline \| first baseline \| last baseline \| self-start \| self-end>` | No | `-` | - |
|
|
163
617
|
| `animate` | `boolean` | No | `true` | Whether to animate the chart. |
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
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 | `-` | - |
|
|
618
|
+
| `as` | `div` | No | `-` | - |
|
|
619
|
+
| `aspectRatio` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
172
620
|
| `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
621
|
| `borderBottomLeftRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
180
622
|
| `borderBottomRightRadius` | `0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 800 \| 900 \| 1000` | No | `-` | - |
|
|
181
623
|
| `borderBottomWidth` | `0 \| 100 \| 200 \| 300 \| 400 \| 500` | No | `-` | - |
|
|
@@ -195,316 +637,96 @@ You can have different area styles for each series.
|
|
|
195
637
|
| `borderedTop` | `boolean` | No | `-` | Add a border to the top side of the box. |
|
|
196
638
|
| `borderedVertical` | `boolean` | No | `-` | Add a border to the top and bottom sides of the box. |
|
|
197
639
|
| `bottom` | `ResponsiveProp<Bottom<string \| number>>` | No | `-` | - |
|
|
198
|
-
| `
|
|
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 | `-` | - |
|
|
640
|
+
| `classNames` | `{ root?: string; chart?: string \| undefined; } \| undefined` | No | `-` | Custom class names for the component. |
|
|
206
641
|
| `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
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
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 | `-` | - |
|
|
642
|
+
| `columnGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
643
|
+
| `connectNulls` | `boolean` | No | `-` | When true, the area is connected across null values. |
|
|
644
|
+
| `curve` | `bump \| catmullRom \| linear \| linearClosed \| monotone \| natural \| step \| stepBefore \| stepAfter` | No | `'bump'` | The curve interpolation method to use for the line. |
|
|
220
645
|
| `dangerouslySetBackground` | `string` | No | `-` | - |
|
|
221
|
-
| `
|
|
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 | `-` | - |
|
|
646
|
+
| `display` | `ResponsiveProp<grid \| none \| block \| inline \| inline-block \| flex \| inline-flex \| inline-grid \| contents \| flow-root \| revert \| list-item>` | No | `-` | - |
|
|
232
647
|
| `elevation` | `0 \| 1 \| 2` | No | `-` | - |
|
|
233
|
-
| `enableBackground` | `string \| number` | No | `-` | - |
|
|
234
648
|
| `enableScrubbing` | `boolean` | No | `-` | Enables scrubbing interactions. When true, allows scrubbing and makes scrubber components interactive. |
|
|
235
|
-
| `
|
|
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 | `-` | - |
|
|
649
|
+
| `fillOpacity` | `number` | No | `1` | Opacity of the area |
|
|
244
650
|
| `flexBasis` | `ResponsiveProp<FlexBasis<string \| number>>` | No | `-` | - |
|
|
245
651
|
| `flexDirection` | `ResponsiveProp<row \| row-reverse \| column \| column-reverse>` | No | `-` | - |
|
|
246
|
-
| `flexGrow` |
|
|
247
|
-
| `flexShrink` |
|
|
652
|
+
| `flexGrow` | `inherit \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
653
|
+
| `flexShrink` | `inherit \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
248
654
|
| `flexWrap` | `ResponsiveProp<nowrap \| wrap \| wrap-reverse>` | No | `-` | - |
|
|
249
|
-
| `floodColor` | `string \| number` | No | `-` | - |
|
|
250
|
-
| `floodOpacity` | `string \| number` | No | `-` | - |
|
|
251
|
-
| `focusable` | `auto \| Booleanish` | No | `-` | - |
|
|
252
655
|
| `font` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
|
|
253
656
|
| `fontFamily` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
|
|
254
|
-
| `fontSize` | `ResponsiveProp<
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `
|
|
258
|
-
| `
|
|
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 | `-` | - |
|
|
657
|
+
| `fontSize` | `ResponsiveProp<inherit \| FontSize>` | No | `-` | - |
|
|
658
|
+
| `fontWeight` | `ResponsiveProp<inherit \| FontWeight>` | No | `-` | - |
|
|
659
|
+
| `gap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
660
|
+
| `grid` | `inherit \| none \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
661
|
+
| `gridArea` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
276
662
|
| `gridAutoColumns` | `ResponsiveProp<GridAutoColumns<string \| number>>` | No | `-` | - |
|
|
277
|
-
| `gridAutoFlow` |
|
|
663
|
+
| `gridAutoFlow` | `inherit \| revert \| row \| column \| -moz-initial \| initial \| revert-layer \| unset \| dense` | No | `-` | - |
|
|
278
664
|
| `gridAutoRows` | `ResponsiveProp<GridAutoRows<string \| number>>` | No | `-` | - |
|
|
279
|
-
| `gridColumn` |
|
|
280
|
-
| `gridColumnEnd` |
|
|
281
|
-
| `gridColumnStart` |
|
|
282
|
-
| `gridRow` |
|
|
283
|
-
| `gridRowEnd` |
|
|
284
|
-
| `gridRowStart` |
|
|
285
|
-
| `gridTemplate` |
|
|
286
|
-
| `gridTemplateAreas` |
|
|
665
|
+
| `gridColumn` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
666
|
+
| `gridColumnEnd` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
667
|
+
| `gridColumnStart` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
668
|
+
| `gridRow` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
669
|
+
| `gridRowEnd` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
670
|
+
| `gridRowStart` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
671
|
+
| `gridTemplate` | `inherit \| none \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
672
|
+
| `gridTemplateAreas` | `inherit \| none \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
287
673
|
| `gridTemplateColumns` | `ResponsiveProp<GridTemplateColumns<string \| number>>` | No | `-` | - |
|
|
288
674
|
| `gridTemplateRows` | `ResponsiveProp<GridTemplateRows<string \| number>>` | No | `-` | - |
|
|
289
|
-
| `hanging` | `string \| number` | No | `-` | - |
|
|
290
675
|
| `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
676
|
| `inset` | `number \| Partial<ChartInset>` | No | `-` | Inset around the entire chart (outside the axes). |
|
|
300
|
-
| `
|
|
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 | `-` | - |
|
|
677
|
+
| `justifyContent` | `ResponsiveProp<left \| right \| center \| normal \| start \| end \| flex-start \| flex-end \| space-between \| space-around \| space-evenly \| stretch>` | No | `-` | - |
|
|
310
678
|
| `key` | `Key \| null` | No | `-` | - |
|
|
311
|
-
| `keyPoints` | `string \| number` | No | `-` | - |
|
|
312
|
-
| `keySplines` | `string \| number` | No | `-` | - |
|
|
313
|
-
| `keyTimes` | `string \| number` | No | `-` | - |
|
|
314
|
-
| `lang` | `string` | No | `-` | - |
|
|
315
679
|
| `left` | `ResponsiveProp<Left<string \| number>>` | No | `-` | - |
|
|
316
|
-
| `
|
|
317
|
-
| `
|
|
318
|
-
| `
|
|
319
|
-
| `
|
|
320
|
-
| `
|
|
321
|
-
| `
|
|
322
|
-
| `
|
|
323
|
-
| `
|
|
324
|
-
| `
|
|
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 | `-` | - |
|
|
680
|
+
| `lineHeight` | `ResponsiveProp<inherit \| LineHeight>` | No | `-` | - |
|
|
681
|
+
| `lineType` | `dotted \| solid` | No | `'solid'` | The type of line to render. |
|
|
682
|
+
| `margin` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
683
|
+
| `marginBottom` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
684
|
+
| `marginEnd` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
685
|
+
| `marginStart` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
686
|
+
| `marginTop` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
687
|
+
| `marginX` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
688
|
+
| `marginY` | `ResponsiveProp<0 \| -1 \| -2 \| -0.25 \| -0.5 \| -0.75 \| -1.5 \| -3 \| -4 \| -5 \| -6 \| -7 \| -8 \| -9 \| -10>` | No | `-` | - |
|
|
341
689
|
| `maxHeight` | `ResponsiveProp<MaxHeight<string \| number>>` | No | `-` | - |
|
|
342
690
|
| `maxWidth` | `ResponsiveProp<MaxWidth<string \| number>>` | No | `-` | - |
|
|
343
|
-
| `media` | `string` | No | `-` | - |
|
|
344
|
-
| `method` | `string` | No | `-` | - |
|
|
345
|
-
| `min` | `string \| number` | No | `-` | - |
|
|
346
691
|
| `minHeight` | `ResponsiveProp<MinHeight<string \| number>>` | No | `-` | - |
|
|
347
692
|
| `minWidth` | `ResponsiveProp<MinWidth<string \| number>>` | No | `-` | - |
|
|
348
|
-
| `
|
|
349
|
-
| `name` | `string` | No | `-` | - |
|
|
350
|
-
| `numOctaves` | `string \| number` | No | `-` | - |
|
|
351
|
-
| `offset` | `string \| number` | No | `-` | - |
|
|
352
|
-
| `onChange` | `FormEventHandler<SVGSVGElement>` | No | `-` | - |
|
|
693
|
+
| `onChange` | `FormEventHandler<HTMLDivElement>` | No | `-` | - |
|
|
353
694
|
| `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` |
|
|
355
|
-
| `
|
|
356
|
-
| `
|
|
357
|
-
| `
|
|
358
|
-
| `
|
|
359
|
-
| `
|
|
360
|
-
| `
|
|
361
|
-
| `
|
|
362
|
-
| `
|
|
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 | `-` | - |
|
|
695
|
+
| `opacity` | `inherit \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
696
|
+
| `overflow` | `ResponsiveProp<hidden \| auto \| visible \| clip \| scroll>` | No | `-` | - |
|
|
697
|
+
| `padding` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
698
|
+
| `paddingBottom` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
699
|
+
| `paddingEnd` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
700
|
+
| `paddingStart` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
701
|
+
| `paddingTop` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
702
|
+
| `paddingX` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
703
|
+
| `paddingY` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
377
704
|
| `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
705
|
| `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
706
|
| `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
707
|
| `right` | `ResponsiveProp<Right<string \| number>>` | No | `-` | - |
|
|
400
|
-
| `
|
|
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 | `-` | - |
|
|
708
|
+
| `rowGap` | `0 \| 1 \| 2 \| 0.25 \| 0.5 \| 0.75 \| 1.5 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8 \| 9 \| 10` | No | `-` | - |
|
|
407
709
|
| `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
710
|
| `showLines` | `boolean` | No | `-` | Whether to show lines on top of the areas. Useful for stacked contexts to show the outline of each area. |
|
|
410
711
|
| `showXAxis` | `boolean` | No | `-` | Whether to show the X axis. |
|
|
411
712
|
| `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
713
|
| `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
|
-
| `
|
|
420
|
-
| `
|
|
421
|
-
| `
|
|
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 | `-` | - |
|
|
714
|
+
| `strokeWidth` | `number` | No | `2` | Width of the line |
|
|
715
|
+
| `style` | `CSSProperties` | No | `-` | Custom styles for the root element. |
|
|
716
|
+
| `styles` | `{ root?: CSSProperties; chart?: CSSProperties \| undefined; } \| undefined` | No | `-` | Custom styles for the component. |
|
|
446
717
|
| `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 \|
|
|
448
|
-
| `textAnchor` | `string` | No | `-` | - |
|
|
718
|
+
| `textAlign` | `ResponsiveProp<center \| start \| end \| justify>` | No | `-` | - |
|
|
449
719
|
| `textDecoration` | `ResponsiveProp<none \| underline \| overline \| line-through \| underline overline \| underline double>` | No | `-` | - |
|
|
450
|
-
| `
|
|
451
|
-
| `textRendering` | `string \| number` | No | `-` | - |
|
|
452
|
-
| `textTransform` | `ResponsiveProp<capitalize \| lowercase \| none \| uppercase>` | No | `-` | - |
|
|
453
|
-
| `to` | `string \| number` | No | `-` | - |
|
|
720
|
+
| `textTransform` | `ResponsiveProp<none \| uppercase \| lowercase \| capitalize>` | No | `-` | - |
|
|
454
721
|
| `top` | `ResponsiveProp<Top<string \| number>>` | No | `-` | - |
|
|
455
|
-
| `transform` |
|
|
722
|
+
| `transform` | `inherit \| none \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
723
|
+
| `transition` | `Orchestration & Repeat & Tween \| Orchestration & Repeat & Spring \| Orchestration & Repeat & Keyframes \| Orchestration & Repeat & Inertia \| Orchestration & Repeat & Just \| Orchestration & Repeat & None \| Orchestration & Repeat & PermissiveTransitionDefinition \| Orchestration & Repeat & Tween & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & Spring & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & Keyframes & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & Inertia & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & Just & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & None & { [key: string]: TransitionDefinition; } \| Orchestration & Repeat & PermissiveTransitionDefinition & { [key: string]: TransitionDefinition; }` | No | `-` | Transition configuration for path animations. |
|
|
456
724
|
| `type` | `dotted \| solid \| gradient` | No | `'solid'` | The type of area to render. |
|
|
457
|
-
| `
|
|
458
|
-
| `
|
|
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 | `-` | - |
|
|
725
|
+
| `userSelect` | `ResponsiveProp<text \| none \| all \| auto>` | No | `-` | - |
|
|
726
|
+
| `visibility` | `ResponsiveProp<hidden \| visible>` | No | `-` | - |
|
|
479
727
|
| `width` | `ResponsiveProp<Width<string \| number>>` | No | `-` | - |
|
|
480
|
-
| `
|
|
481
|
-
| `
|
|
482
|
-
| `
|
|
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 | `-` | - |
|
|
728
|
+
| `xAxis` | `(Partial<AxisConfigProps> & AxisBaseProps & { className?: string; classNames?: { root?: string \| undefined; label?: string \| undefined; tickLabel?: string \| undefined; gridLine?: string \| undefined; line?: string \| undefined; tickMark?: string \| undefined; } \| undefined; style?: CSSProperties \| undefined; styles?: { root?: CSSProperties \| undefined; label?: CSSProperties \| undefined; tickLabel?: CSSProperties \| undefined; gridLine?: CSSProperties \| undefined; line?: CSSProperties \| undefined; tickMark?: CSSProperties \| undefined; } \| undefined; GridLineComponent?: LineComponent \| undefined; LineComponent?: LineComponent \| undefined; TickMarkLineComponent?: LineComponent \| undefined; tickLabelFormatter?: ((value: number) => ChartTextChildren) \| undefined; TickLabelComponent?: AxisTickLabelComponent \| undefined; } & { position?: top \| bottom \| undefined; height?: number \| undefined; }) \| undefined` | No | `-` | Configuration for x-axis. Accepts axis config and axis props. To show the axis, set showXAxis to true. |
|
|
729
|
+
| `yAxis` | `(Partial<AxisConfigProps> & AxisBaseProps & { className?: string; classNames?: { root?: string \| undefined; label?: string \| undefined; tickLabel?: string \| undefined; gridLine?: string \| undefined; line?: string \| undefined; tickMark?: string \| undefined; } \| undefined; style?: CSSProperties \| undefined; styles?: { root?: CSSProperties \| undefined; label?: CSSProperties \| undefined; tickLabel?: CSSProperties \| undefined; gridLine?: CSSProperties \| undefined; line?: CSSProperties \| undefined; tickMark?: CSSProperties \| undefined; } \| undefined; GridLineComponent?: LineComponent \| undefined; LineComponent?: LineComponent \| undefined; TickMarkLineComponent?: LineComponent \| undefined; tickLabelFormatter?: ((value: number) => ChartTextChildren) \| undefined; TickLabelComponent?: AxisTickLabelComponent \| undefined; } & { axisId?: string \| undefined; position?: left \| right \| undefined; width?: number \| undefined; }) \| undefined` | No | `-` | Configuration for y-axis. Accepts axis config and axis props. To show the axis, set showYAxis to true. |
|
|
730
|
+
| `zIndex` | `inherit \| auto \| revert \| -moz-initial \| initial \| revert-layer \| unset` | No | `-` | - |
|
|
509
731
|
|
|
510
732
|
|