@patternfly/react-docs 7.6.0-prerelease.8 → 7.6.0-prerelease.9
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 +6 -0
- package/LICENSE +21 -0
- package/package.json +12 -11
- package/patternfly-docs/generated/components/about-modal/react.js +0 -149
- package/patternfly-docs/generated/components/accordion/react.js +0 -262
- package/patternfly-docs/generated/components/action-list/react.js +0 -144
- package/patternfly-docs/generated/components/alert/react-demos.js +0 -56
- package/patternfly-docs/generated/components/alert/react.js +0 -1433
- package/patternfly-docs/generated/components/avatar/react.js +0 -166
- package/patternfly-docs/generated/components/back-to-top/react-demos.js +0 -60
- package/patternfly-docs/generated/components/back-to-top/react.js +0 -77
- package/patternfly-docs/generated/components/backdrop/react.js +0 -64
- package/patternfly-docs/generated/components/background-image/react.js +0 -62
- package/patternfly-docs/generated/components/badge/react.js +0 -97
- package/patternfly-docs/generated/components/banner/react-demos.js +0 -57
- package/patternfly-docs/generated/components/banner/react.js +0 -148
- package/patternfly-docs/generated/components/brand/react.js +0 -142
- package/patternfly-docs/generated/components/breadcrumb/react.js +0 -206
- package/patternfly-docs/generated/components/button/react-demos.js +0 -57
- package/patternfly-docs/generated/components/button/react.js +0 -826
- package/patternfly-docs/generated/components/card/react-demos.js +0 -201
- package/patternfly-docs/generated/components/card/react.js +0 -1015
- package/patternfly-docs/generated/components/charts/area-chart/-Victory.js +0 -1350
- package/patternfly-docs/generated/components/charts/bar-chart/-Victory.js +0 -1334
- package/patternfly-docs/generated/components/charts/box-plot-chart/-Victory.js +0 -1282
- package/patternfly-docs/generated/components/charts/bullet-chart/-Victory.js +0 -848
- package/patternfly-docs/generated/components/charts/colors-for-charts/-Victory.js +0 -192
- package/patternfly-docs/generated/components/charts/donut-chart/-Victory.js +0 -426
- package/patternfly-docs/generated/components/charts/donut-utilization-chart/-Victory.js +0 -804
- package/patternfly-docs/generated/components/charts/legends/-Victory.js +0 -3230
- package/patternfly-docs/generated/components/charts/line-chart/-Victory.js +0 -1178
- package/patternfly-docs/generated/components/charts/line-chart/ECharts.js +0 -525
- package/patternfly-docs/generated/components/charts/patterns/-Victory.js +0 -3382
- package/patternfly-docs/generated/components/charts/pie-chart/-Victory.js +0 -377
- package/patternfly-docs/generated/components/charts/resize-observer/-Victory.js +0 -2475
- package/patternfly-docs/generated/components/charts/sankey-chart/ECharts.js +0 -538
- package/patternfly-docs/generated/components/charts/scatter-chart/-Victory.js +0 -1551
- package/patternfly-docs/generated/components/charts/skeletons/-Victory.js +0 -4115
- package/patternfly-docs/generated/components/charts/sparkline-chart/-Victory.js +0 -955
- package/patternfly-docs/generated/components/charts/stack-chart/-Victory.js +0 -1173
- package/patternfly-docs/generated/components/charts/threshold-chart/-Victory.js +0 -1166
- package/patternfly-docs/generated/components/charts/tooltips/-Victory.js +0 -413
- package/patternfly-docs/generated/components/chip/react-deprecated.js +0 -323
- package/patternfly-docs/generated/components/clipboard-copy/react.js +0 -373
- package/patternfly-docs/generated/components/code-block/react.js +0 -148
- package/patternfly-docs/generated/components/code-editor/react.js +0 -659
- package/patternfly-docs/generated/components/compass/react-demos.js +0 -147
- package/patternfly-docs/generated/components/compass/react.js +0 -440
- package/patternfly-docs/generated/components/content/react.js +0 -248
- package/patternfly-docs/generated/components/data-list/react-demos.js +0 -90
- package/patternfly-docs/generated/components/data-list/react.js +0 -709
- package/patternfly-docs/generated/components/date-and-time/calendar-month/react.js +0 -283
- package/patternfly-docs/generated/components/date-and-time/date-and-time-picker/react-demos.js +0 -64
- package/patternfly-docs/generated/components/date-and-time/date-picker/react-demos.js +0 -83
- package/patternfly-docs/generated/components/date-and-time/date-picker/react.js +0 -395
- package/patternfly-docs/generated/components/date-and-time/time-picker/react.js +0 -241
- package/patternfly-docs/generated/components/description-list/react-demos.js +0 -58
- package/patternfly-docs/generated/components/description-list/react.js +0 -743
- package/patternfly-docs/generated/components/divider/react.js +0 -126
- package/patternfly-docs/generated/components/drag-and-drop/react-demos.js +0 -351
- package/patternfly-docs/generated/components/drag-and-drop/react-deprecated.js +0 -184
- package/patternfly-docs/generated/components/drag-and-drop/react.js +0 -137
- package/patternfly-docs/generated/components/drawer/react.js +0 -598
- package/patternfly-docs/generated/components/dual-list-selector/react-deprecated.js +0 -772
- package/patternfly-docs/generated/components/dual-list-selector/react.js +0 -594
- package/patternfly-docs/generated/components/empty-state/react.js +0 -199
- package/patternfly-docs/generated/components/expandable-section/react-demos.js +0 -65
- package/patternfly-docs/generated/components/expandable-section/react.js +0 -408
- package/patternfly-docs/generated/components/file-upload/multiple-file-upload/react-demos.js +0 -52
- package/patternfly-docs/generated/components/file-upload/multiple-file-upload/react.js +0 -398
- package/patternfly-docs/generated/components/file-upload/simple-file-upload/react.js +0 -749
- package/patternfly-docs/generated/components/forms/checkbox/react.js +0 -222
- package/patternfly-docs/generated/components/forms/form/react.js +0 -1106
- package/patternfly-docs/generated/components/forms/form-select/react.js +0 -208
- package/patternfly-docs/generated/components/forms/radio/react.js +0 -212
- package/patternfly-docs/generated/components/forms/text-area/react.js +0 -160
- package/patternfly-docs/generated/components/forms/text-input/react.js +0 -216
- package/patternfly-docs/generated/components/helper-text/react-demos.js +0 -180
- package/patternfly-docs/generated/components/helper-text/react.js +0 -164
- package/patternfly-docs/generated/components/hero/react.js +0 -88
- package/patternfly-docs/generated/components/hint/react.js +0 -169
- package/patternfly-docs/generated/components/icon/react.js +0 -215
- package/patternfly-docs/generated/components/input-group/react.js +0 -182
- package/patternfly-docs/generated/components/jump-links/react-demos.js +0 -154
- package/patternfly-docs/generated/components/jump-links/react.js +0 -212
- package/patternfly-docs/generated/components/label/react-demos.js +0 -57
- package/patternfly-docs/generated/components/label/react.js +0 -417
- package/patternfly-docs/generated/components/list/react.js +0 -175
- package/patternfly-docs/generated/components/login-page/react.js +0 -587
- package/patternfly-docs/generated/components/masthead/react-demos.js +0 -79
- package/patternfly-docs/generated/components/masthead/react.js +0 -291
- package/patternfly-docs/generated/components/menus/application-launcher/react-demos.js +0 -769
- package/patternfly-docs/generated/components/menus/context-selector/react-demos.js +0 -665
- package/patternfly-docs/generated/components/menus/custom-menus/react-demos.js +0 -187
- package/patternfly-docs/generated/components/menus/dropdown/react-templates.js +0 -163
- package/patternfly-docs/generated/components/menus/dropdown/react.js +0 -998
- package/patternfly-docs/generated/components/menus/menu/react.js +0 -1540
- package/patternfly-docs/generated/components/menus/menu-toggle/react.js +0 -747
- package/patternfly-docs/generated/components/menus/options-menu/react-demos.js +0 -508
- package/patternfly-docs/generated/components/menus/select/react-templates.js +0 -257
- package/patternfly-docs/generated/components/menus/select/react.js +0 -998
- package/patternfly-docs/generated/components/modal/react-deprecated.js +0 -554
- package/patternfly-docs/generated/components/modal/react.js +0 -597
- package/patternfly-docs/generated/components/navigation/react-demos.js +0 -356
- package/patternfly-docs/generated/components/navigation/react.js +0 -409
- package/patternfly-docs/generated/components/notification-badge/react.js +0 -196
- package/patternfly-docs/generated/components/notification-drawer/react-demos.js +0 -107
- package/patternfly-docs/generated/components/notification-drawer/react.js +0 -394
- package/patternfly-docs/generated/components/number-input/react.js +0 -210
- package/patternfly-docs/generated/components/overflow-menu/react.js +0 -274
- package/patternfly-docs/generated/components/page/react-demos.js +0 -149
- package/patternfly-docs/generated/components/page/react.js +0 -1352
- package/patternfly-docs/generated/components/pagination/react.js +0 -492
- package/patternfly-docs/generated/components/panel/react.js +0 -236
- package/patternfly-docs/generated/components/popover/react.js +0 -390
- package/patternfly-docs/generated/components/progress/react-demos.js +0 -59
- package/patternfly-docs/generated/components/progress/react.js +0 -283
- package/patternfly-docs/generated/components/progress-stepper/react-demos.js +0 -45
- package/patternfly-docs/generated/components/progress-stepper/react.js +0 -219
- package/patternfly-docs/generated/components/search-input/react-demos.js +0 -113
- package/patternfly-docs/generated/components/search-input/react.js +0 -263
- package/patternfly-docs/generated/components/sidebar/react.js +0 -236
- package/patternfly-docs/generated/components/simple-list/react.js +0 -200
- package/patternfly-docs/generated/components/skeleton/react-demos.js +0 -44
- package/patternfly-docs/generated/components/skeleton/react.js +0 -122
- package/patternfly-docs/generated/components/skip-to-content/react.js +0 -73
- package/patternfly-docs/generated/components/slider/react.js +0 -309
- package/patternfly-docs/generated/components/spinner/react.js +0 -111
- package/patternfly-docs/generated/components/switch/react.js +0 -163
- package/patternfly-docs/generated/components/table/react-demos.js +0 -355
- package/patternfly-docs/generated/components/table/react-deprecated.js +0 -1350
- package/patternfly-docs/generated/components/table/react.js +0 -3241
- package/patternfly-docs/generated/components/tabs/react-demos.js +0 -108
- package/patternfly-docs/generated/components/tabs/react.js +0 -1359
- package/patternfly-docs/generated/components/text-input-group/react-demos.js +0 -152
- package/patternfly-docs/generated/components/text-input-group/react.js +0 -278
- package/patternfly-docs/generated/components/tile/react-deprecated.js +0 -242
- package/patternfly-docs/generated/components/timestamp/react.js +0 -283
- package/patternfly-docs/generated/components/title/react.js +0 -94
- package/patternfly-docs/generated/components/toggle-group/react.js +0 -299
- package/patternfly-docs/generated/components/toolbar/react-demos.js +0 -66
- package/patternfly-docs/generated/components/toolbar/react.js +0 -932
- package/patternfly-docs/generated/components/tooltip/react.js +0 -241
- package/patternfly-docs/generated/components/tree-view/react.js +0 -429
- package/patternfly-docs/generated/components/truncate/react.js +0 -211
- package/patternfly-docs/generated/components/wizard/react-demos.js +0 -87
- package/patternfly-docs/generated/components/wizard/react-deprecated.js +0 -788
- package/patternfly-docs/generated/components/wizard/react.js +0 -986
- package/patternfly-docs/generated/developer-guides/open-ui-automation/react.js +0 -285
- package/patternfly-docs/generated/foundations-and-styles/layouts/bullseye/react.js +0 -70
- package/patternfly-docs/generated/foundations-and-styles/layouts/flex/react.js +0 -506
- package/patternfly-docs/generated/foundations-and-styles/layouts/gallery/react.js +0 -94
- package/patternfly-docs/generated/foundations-and-styles/layouts/grid/react.js +0 -272
- package/patternfly-docs/generated/foundations-and-styles/layouts/level/react.js +0 -87
- package/patternfly-docs/generated/foundations-and-styles/layouts/split/react.js +0 -124
- package/patternfly-docs/generated/foundations-and-styles/layouts/stack/react.js +0 -112
- package/patternfly-docs/generated/index.js +0 -1769
- package/patternfly-docs/generated/patterns/card-view/react-demos.js +0 -78
- package/patternfly-docs/generated/patterns/filters/react-demos.js +0 -141
- package/patternfly-docs/generated/patterns/password-generator/react-demos.js +0 -51
- package/patternfly-docs/generated/patterns/password-strength/react-demos.js +0 -61
- package/patternfly-docs/generated/patterns/primary-detail/react-demos.js +0 -124
- package/patternfly-docs/generated/patterns/right-to-left/react-demos.js +0 -81
|
@@ -1,1334 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
|
|
3
|
-
import { Chart, ChartAxis, ChartBar, ChartGroup, ChartLabel, ChartThemeColor, ChartTooltip, ChartVoronoiContainer } from '@patternfly/react-charts/victory';
|
|
4
|
-
import { VictoryZoomContainer } from 'victory-zoom-container';
|
|
5
|
-
import t_global_color_status_danger_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_danger_100';
|
|
6
|
-
import t_global_color_status_info_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_info_100';
|
|
7
|
-
import t_global_color_status_warning_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_warning_100';
|
|
8
|
-
const pageData = {
|
|
9
|
-
"id": "Bar chart",
|
|
10
|
-
"section": "components",
|
|
11
|
-
"subsection": "charts",
|
|
12
|
-
"deprecated": false,
|
|
13
|
-
"template": false,
|
|
14
|
-
"beta": false,
|
|
15
|
-
"demo": false,
|
|
16
|
-
"newImplementationLink": false,
|
|
17
|
-
"source": "-Victory",
|
|
18
|
-
"tabName": null,
|
|
19
|
-
"slug": "/components/charts/bar-chart/-Victory",
|
|
20
|
-
"sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/react-charts/src/victory/components/ChartBar/examples/ChartBar.md",
|
|
21
|
-
"relPath": "packages/react-charts/src/victory/components/ChartBar/examples/ChartBar.md",
|
|
22
|
-
"propComponents": [
|
|
23
|
-
{
|
|
24
|
-
"name": "Chart",
|
|
25
|
-
"description": "Chart is a wrapper component that reconciles the domain for all its children, controls the layout of the chart,\nand coordinates animations and shared events.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-chart/src/victory-chart.tsx",
|
|
26
|
-
"props": [
|
|
27
|
-
{
|
|
28
|
-
"name": "animate",
|
|
29
|
-
"type": "boolean | object",
|
|
30
|
-
"description": "The animate prop specifies props for VictoryAnimation to use.\nThe animate prop should also be used to specify enter and exit\ntransition configurations with the `onExit` and `onEnter` namespaces respectively.\n\n\n@example {duration: 500, onExit: () => {}, onEnter: {duration: 500, before: () => ({y: 0})})}"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "ariaDesc",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "The ariaDesc prop specifies the description of the chart/SVG to assist with\naccessibility for screen readers.\n\nNote: Overridden by the desc prop of containerComponent"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "ariaTitle",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "The ariaTitle prop specifies the title to be applied to the SVG to assist\naccessibility for screen readers.\n\nNote: Overridden by the title prop of containerComponent"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "backgroundComponent",
|
|
44
|
-
"type": "React.ReactElement<any>",
|
|
45
|
-
"description": "The backgroundComponent prop takes a component instance which will be responsible for rendering a background if the\nChart's style component includes background styles. The new element created from the passed backgroundComponent\nwill be provided with the following properties calculated by Chart: height, polar, scale, style, x, y, width.\nAll of these props on Background should take precedence over what VictoryChart is trying to set."
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "children",
|
|
49
|
-
"type": "React.ReactNode | React.ReactNode[]",
|
|
50
|
-
"description": "The children to render with the chart"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "containerComponent",
|
|
54
|
-
"type": "React.ReactElement<any>",
|
|
55
|
-
"description": "The containerComponent prop takes an entire component which will be used to\ncreate a container element for standalone charts.\nThe new element created from the passed containerComponent wil be provided with\nthese props from ChartArea: height, width, children\n(the chart itself) and style. Props that are not provided by the\nchild chart component include title and desc, both of which\nare intended to add accessibility to Victory components. The more descriptive these props\nare, the more accessible your data will be for people using screen readers.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a dataComponent is\nnot provided, ChartArea will use the default ChartContainer component.\n\n@example <ChartContainer title=\"Chart of Dog Breeds\" desc=\"This chart shows ...\" />",
|
|
56
|
-
"defaultValue": "<ChartContainer />"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "domain",
|
|
60
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
61
|
-
"description": "The domain prop describes the range of values your chart will include. This prop can be\ngiven as a array of the minimum and maximum expected values for your chart,\nor as an object that specifies separate arrays for x and y.\nIf this prop is not provided, a domain will be calculated from data, or other\navailable information.\n\n\n@example [low, high], { x: [low, high], y: [low, high] }\n\n[-1, 1], {x: [0, 100], y: [0, 1]}"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "domainPadding",
|
|
65
|
-
"type": "number | number[] | { x: number[], y: number[] }",
|
|
66
|
-
"description": "The domainPadding prop specifies a number of pixels of padding to add to the\nbeginning and end of a domain. This prop is useful for explicitly spacing ticks farther\nfrom the origin to prevent crowding. This prop should be given as an object with\nnumbers specified for x and y.\n\n\n@example [left, right], { x: [left, right], y: [bottom, top] }\n\n{x: [10, -10], y: 5}"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "endAngle",
|
|
70
|
-
"type": "number",
|
|
71
|
-
"description": "The endAngle props defines the overall end angle of a polar chart in degrees. This prop is used in conjunction with\nstartAngle to create polar chart that spans only a segment of a circle, or to change overall rotation of the chart.\nThis prop should be given as a number of degrees. Degrees are defined as starting at the 3 o'clock position, and\nproceeding counterclockwise."
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "eventKey",
|
|
75
|
-
"type": "number | string | Function",
|
|
76
|
-
"description": "Similar to data accessor props `x` and `y`, this prop may be used to functionally\nassign eventKeys to data"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "events",
|
|
80
|
-
"type": "object[]",
|
|
81
|
-
"description": "The event prop takes an array of event objects. Event objects are composed of\na target, an eventKey, and eventHandlers. Targets may be any valid style namespace\nfor a given component, so \"data\" and \"labels\" are all valid targets for ChartPie\nevents. The eventKey may optionally be used to select a single element by index rather than\nan entire set. The eventHandlers object should be given as an object whose keys are standard\nevent names (i.e. onClick) and whose values are event callbacks. The return value\nof an event handler is used to modify elements. The return value should be given\nas an object or an array of objects with optional target and eventKey keys,\nand a mutation key whose value is a function. The target and eventKey keys\nwill default to those corresponding to the element the event handler was attached to.\nThe mutation function will be called with the calculated props for the individual selected\nelement (i.e. a single bar), and the object returned from the mutation function\nwill override the props of the selected element via object assignment.\n\n\n@example\nevents={[\n {\n target: \"data\",\n eventKey: 1,\n eventHandlers: {\n onClick: () => {\n return [\n {\n eventKey: 2,\n mutation: (props) => {\n return {style: merge({}, props.style, {fill: \"orange\"})};\n }\n }, {\n eventKey: 2,\n target: \"labels\",\n mutation: () => {\n return {text: \"hey\"};\n }\n }\n ];\n }\n }\n }\n]}"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "externalEventMutations",
|
|
85
|
-
"type": "object[]",
|
|
86
|
-
"description": "Chart uses the standard externalEventMutations prop."
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "groupComponent",
|
|
90
|
-
"type": "React.ReactElement<any>",
|
|
91
|
-
"description": "The groupComponent prop takes an entire component which will be used to\ncreate group elements for use within container elements. This prop defaults\nto a <g> tag on web, and a react-native-svg <G> tag on mobile"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "hasPatterns",
|
|
95
|
-
"type": "boolean | boolean[]",
|
|
96
|
-
"description": "The hasPatterns prop is an optional prop that indicates whether a pattern is shown for a chart.\nSVG patterns are dynamically generated (unique to each chart) in order to apply colors from the selected\ncolor theme or custom color scale. Those generated patterns are applied in a specific order (via a URL), similar\nto the color theme ordering defined by PatternFly. If the multi-color theme was in use; for example, colorized\npatterns would be displayed in that same order. Create custom patterns via the patternScale prop.\n\nNote: Not all components are supported; for example, ChartLine, ChartBullet, ChartThreshold, etc.\n\n@example hasPatterns={ true }\n@example hasPatterns={[ true, true, false ]}"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "height",
|
|
100
|
-
"type": "number",
|
|
101
|
-
"description": "Specifies the height the svg viewBox of the chart container. This value should be given as a\nnumber of pixels.\n\nBecause Victory renders responsive containers, the width and height props do not determine the width and\nheight of the chart in number of pixels, but instead define an aspect ratio for the chart. The exact number of\npixels will depend on the size of the container the chart is rendered into. Typically, the parent container is set\nto the same width in order to maintain the aspect ratio.",
|
|
102
|
-
"defaultValue": "theme.chart.height"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "horizontal",
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"description": "The horizontal prop determines whether data will be plotted horizontally. When this prop is set to true, the\nindependent variable will be plotted on the y axis and the dependent variable will be plotted on the x axis."
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "innerRadius",
|
|
111
|
-
"type": "number | Function",
|
|
112
|
-
"description": "When the innerRadius prop is set, polar charts will be hollow rather than circular."
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "legendAllowWrap",
|
|
116
|
-
"type": "boolean | ((extraHeight: number) => void)",
|
|
117
|
-
"description": "Allows legend items to wrap onto the next line if the chart is not wide enough.\n\nNote that the chart's SVG height and width are 100% by default, so it can be responsive itself. However, if you\ndefine the height and width of the chart's parent container, you must accommodate for extra legend height due to\nlegend items wrapping onto the next line. When the height of the chart's parent container is too small, some legend\nitems may not be visible.\n\nAlternatively, a callback function may be provided, which will be called after the legend's itemsPerRow property\nhas been calculated. The value provided can be used to increase the chart's parent container height as legend\nitems wrap onto the next line. If no adjustment is necessary, the value will be zero.\n\nNote: This is overridden by the legendItemsPerRow property"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "legendComponent",
|
|
121
|
-
"type": "React.ReactElement<any>",
|
|
122
|
-
"description": "The legend component to render with chart.\n\nNote: Use legendData so the legend width can be calculated and positioned properly.\nDefault legend properties may be applied",
|
|
123
|
-
"defaultValue": "<ChartLegend />"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"name": "legendData",
|
|
127
|
-
"type": "{\n name?: string;\n symbol?: {\n fill?: string;\n type?: string;\n };\n}[]",
|
|
128
|
-
"description": "Specify data via the data prop. ChartLegend expects data as an\narray of objects with name (required), symbol, and labels properties.\nThe data prop must be given as an array.\n\n@example legendData={[{ name: `GBps capacity - 45%` }, { name: 'Unused' }]}"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "legendDirection",
|
|
132
|
-
"type": "'ltr' | 'rtl'",
|
|
133
|
-
"description": "Text direction of the legend labels.",
|
|
134
|
-
"defaultValue": "'ltr'"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"name": "legendOrientation",
|
|
138
|
-
"type": "'horizontal' | 'vertical'",
|
|
139
|
-
"description": "The orientation prop takes a string that defines whether legend data\nare displayed in a row or column. When orientation is \"horizontal\",\nlegend items will be displayed in a single row. When orientation is\n\"vertical\", legend items will be displayed in a single column. Line\nand text-wrapping is not currently supported, so \"vertical\"\norientation is both the default setting and recommended for\ndisplaying many series of data.",
|
|
140
|
-
"defaultValue": "theme.legend.orientation"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"name": "legendPosition",
|
|
144
|
-
"type": "'bottom' | 'bottom-left' | 'right'",
|
|
145
|
-
"description": "The legend position relation to the chart. Valid values are 'bottom', 'bottom-left', and 'right'\n\nNote: When adding a legend, padding may need to be adjusted in order to accommodate the extra legend. In some\ncases, the legend may not be visible until enough padding is applied.",
|
|
146
|
-
"defaultValue": "\"right\""
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "maxDomain",
|
|
150
|
-
"type": "number | { x?: number; y?: number }",
|
|
151
|
-
"description": "The maxDomain prop defines a maximum domain value for a chart. This prop is useful in situations where the maximum\ndomain of a chart is static, while the minimum value depends on data or other variable information. If the domain\nprop is set in addition to maximumDomain, domain will be used.\n\nNote: The x value supplied to the maxDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nmaxDomain={0}\nmaxDomain={{ y: 0 }}"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "minDomain",
|
|
155
|
-
"type": "number | { x?: number; y?: number }",
|
|
156
|
-
"description": "The minDomain prop defines a minimum domain value for a chart. This prop is useful in situations where the minimum\ndomain of a chart is static, while the maximum value depends on data or other variable information. If the domain\nprop is set in addition to minimumDomain, domain will be used.\n\nNote: The x value supplied to the minDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nminDomain={0}\nminDomain={{ y: 0 }}"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "name",
|
|
160
|
-
"type": "string",
|
|
161
|
-
"description": "The name prop is typically used to reference a component instance when defining shared events. However, this\noptional prop may also be applied to child elements as an ID prefix. This is a workaround to ensure Victory\nbased components output unique IDs when multiple charts appear in a page."
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"name": "padding",
|
|
165
|
-
"type": "number | { top: number, bottom: number, left: number, right: number }",
|
|
166
|
-
"description": "The padding props specifies the amount of padding in number of pixels between\nthe edge of the chart and any rendered child components. This prop can be given\nas a number or as an object with padding specified for top, bottom, left\nand right."
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "patternScale",
|
|
170
|
-
"type": "string[]",
|
|
171
|
-
"description": "The patternScale prop is an optional prop that defines patterns to apply, where applicable. This prop should be\ngiven as a string array of pattern URLs. Patterns will be assigned to children by index and will repeat when there\nare more children than patterns in the provided patternScale. Use null to omit the pattern for a given index.\n\nNote: Not all components are supported; for example, ChartLine, ChartBullet, ChartThreshold, etc.\n\n@example patternScale={[ 'url(\"#pattern1\")', 'url(\"#pattern2\")', null ]}"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "polar",
|
|
175
|
-
"type": "boolean",
|
|
176
|
-
"description": "Victory components can pass a boolean polar prop to specify whether a label is part of a polar chart."
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "range",
|
|
180
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
181
|
-
"description": "The range prop describes the dimensions over which data may be plotted. For cartesian coordinate systems, this\ncorresponds to minimum and maximum svg coordinates in the x and y dimension. In polar coordinate systems this\ncorresponds to a range of angles and radii. When this value is not given it will be calculated from the width,\nheight, and padding, or from the startAngle and endAngle in the case of polar charts. All components in a given\nchart must share the same range, so setting this prop on children nested within Chart, ChartStack, or\nChartGroup will have no effect. This prop is usually not set manually.\n\n\n@example [low, high] | { x: [low, high], y: [low, high] }\n\nCartesian: range={{ x: [50, 250], y: [50, 250] }}\nPolar: range={{ x: [0, 360], y: [0, 250] }}"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"name": "scale",
|
|
185
|
-
"type": "string | { x: string, y: string }",
|
|
186
|
-
"description": "The scale prop determines which scales your chart should use. This prop can be\ngiven as a string specifying a supported scale (\"linear\", \"time\", \"log\", \"sqrt\"),\nas a d3 scale function, or as an object with scales specified for x and y\n\n\n@example d3Scale.time(), {x: \"linear\", y: \"log\"}"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "showAxis",
|
|
190
|
-
"type": "boolean",
|
|
191
|
-
"description": "Convenience prop to hide both x and y axis, which are shown by default. Alternatively, the axis can be hidden via\nchart styles.",
|
|
192
|
-
"defaultValue": "true"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "singleQuadrantDomainPadding",
|
|
196
|
-
"type": "boolean | { x?: boolean; y?: boolean }",
|
|
197
|
-
"description": "By default domainPadding is coerced to existing quadrants. This means that if a given domain only includes positive\nvalues, no amount of padding applied by domainPadding will result in a domain with negative values. This is the\ndesired behavior in most cases. For users that need to apply padding without regard to quadrant, the\nsingleQuadrantDomainPadding prop may be used. This prop may be given as a boolean or an object with boolean values\nspecified for \"x\" and/or \"y\". When this prop is false (or false for a given dimension), padding will be applied\nwithout regard to quadrant. If this prop is not specified, domainPadding will be coerced to existing quadrants.\n\nNote: The x value supplied to the singleQuadrantDomainPadding prop refers to the independent variable, and the y\nvalue refers to the dependent variable. This may cause confusion in horizontal charts, as the independent variable\nwill corresponds to the y axis.\n\n@example\n\nsingleQuadrantDomainPadding={false}\nsingleQuadrantDomainPadding={{ x: false }}"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"name": "standalone",
|
|
201
|
-
"type": "boolean",
|
|
202
|
-
"description": "The standalone prop determines whether the component will render a standalone svg\nor a <g> tag that will be included in an external svg. Set standalone to false to\ncompose Chart with other components within an enclosing <svg> tag."
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "startAngle",
|
|
206
|
-
"type": "number",
|
|
207
|
-
"description": "The startAngle props defines the overall start angle of a polar chart in degrees. This prop is used in conjunction\nwith endAngle to create polar chart that spans only a segment of a circle, or to change overall rotation of the\nchart. This prop should be given as a number of degrees. Degrees are defined as starting at the 3 o'clock position,\nand proceeding counterclockwise."
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"name": "style",
|
|
211
|
-
"type": "{ parent: object, background: object }",
|
|
212
|
-
"description": "The style prop defines the style of the component. The style prop should be given as an object with styles defined\nfor data, labels and parent. Any valid svg styles are supported, but width, height, and padding should be specified\nvia props as they determine relative layout for components in Chart.\n\n\n@propType { parent: object, background: object }"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "theme",
|
|
216
|
-
"type": "object",
|
|
217
|
-
"description": "The theme prop specifies a theme to use for determining styles and layout properties for a component. Any styles or\nprops defined in theme may be overwritten by props specified on the component instance.",
|
|
218
|
-
"defaultValue": "getChartTheme(themeColor, showAxis)"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "themeColor",
|
|
222
|
-
"type": "string",
|
|
223
|
-
"description": "Specifies the theme color. Valid values are 'blue', 'green', 'multi', etc.\n\nNote: Not compatible with theme prop\n\n@example themeColor={ChartThemeColor.blue}"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "width",
|
|
227
|
-
"type": "number",
|
|
228
|
-
"description": "Specifies the width of the svg viewBox of the chart container. This value should be given as a\nnumber of pixels.\n\nBecause Victory renders responsive containers, the width and height props do not determine the width and\nheight of the chart in number of pixels, but instead define an aspect ratio for the chart. The exact number of\npixels will depend on the size of the container the chart is rendered into. Typically, the parent container is set\nto the same width in order to maintain the aspect ratio.",
|
|
229
|
-
"defaultValue": "theme.chart.width"
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "ChartAxis",
|
|
235
|
-
"description": "ChartAxis renders a single axis which can be used on its own or composed with Chart.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-axis/src/index.d.ts",
|
|
236
|
-
"props": [
|
|
237
|
-
{
|
|
238
|
-
"name": "animate",
|
|
239
|
-
"type": "boolean | object",
|
|
240
|
-
"description": "The animate prop specifies props for VictoryAnimation to use.\nThe animate prop should also be used to specify enter and exit\ntransition configurations with the `onExit` and `onEnter` namespaces respectively.\n\n\n@example {duration: 500, onExit: () => {}, onEnter: {duration: 500, before: () => ({y: 0})})}"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "axisComponent",
|
|
244
|
-
"type": "React.ReactElement<any>",
|
|
245
|
-
"description": "The axisComponent prop takes in an entire component which will be used\nto create the axis line. The new element created from the passed axisComponent\nwill be supplied with the following properties: x1, y1, x2, y2, style and events.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If an axisComponent\nis not supplied, ChartAxis will render its default AxisLine component."
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "axisLabelComponent",
|
|
249
|
-
"type": "React.ReactElement<any>",
|
|
250
|
-
"description": "The axisLabelComponent prop takes in an entire component which will be used\nto create the axis label. The new element created from the passed axisLabelComponent\nwill be supplied with the following properties: x, y, verticalAnchor, textAnchor,\nangle, transform, style and events. Any of these props may be overridden by\npassing in props to the supplied component, or modified or ignored within\nthe custom component itself. If an axisLabelComponent is not supplied, a new\nChartLabel will be created with props described above",
|
|
251
|
-
"defaultValue": "<ChartLabel />"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"name": "axisValue",
|
|
255
|
-
"type": "number | string | object | Date",
|
|
256
|
-
"description": "The axisValue prop may be used instead of axisAngle to position the dependent axis. Ths prop is useful when\ndependent axes should line up with values on the independent axis."
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"name": "containerComponent",
|
|
260
|
-
"type": "React.ReactElement<any>",
|
|
261
|
-
"description": "The containerComponent prop takes an entire component which will be used to\ncreate a container element for standalone charts.\nThe new element created from the passed containerComponent wil be provided with\nthese props from ChartAxis: height, width, children\n(the chart itself) and style. Props that are not provided by the\nchild chart component include title and desc, both of which\nare intended to add accessibility to Victory components. The more descriptive these props\nare, the more accessible your data will be for people using screen readers.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a dataComponent is\nnot provided, ChartAxis will use the default ChartContainer component.\n\n@example <ChartContainer title=\"Chart of Dog Breeds\" desc=\"This chart shows ...\" />",
|
|
262
|
-
"defaultValue": "<ChartContainer />"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"name": "crossAxis",
|
|
266
|
-
"type": "boolean",
|
|
267
|
-
"description": "This prop specifies whether a given axis is intended to cross another axis."
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "dependentAxis",
|
|
271
|
-
"type": "boolean",
|
|
272
|
-
"description": "The dependentAxis prop specifies whether the axis corresponds to the\ndependent variable (usually y). This prop is useful when composing axis\nwith other components to form a chart."
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"name": "domain",
|
|
276
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
277
|
-
"description": "The domain prop describes the range of values your axis will include. This prop should be\ngiven as a array of the minimum and maximum expected values for your axis.\nIf this value is not given it will be calculated based on the scale or tickValues.\n\n\n@example [low, high], { x: [low, high], y: [low, high] }\n\n[-1, 1], {x: [0, 100], y: [0, 1]}"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"name": "domainPadding",
|
|
281
|
-
"type": "number | number[] | { x: number[], y: number[] }",
|
|
282
|
-
"description": "The domainPadding prop specifies a number of pixels of padding to add to the\nbeginning and end of a domain. This prop is useful for explicitly spacing ticks farther\nfrom the origin to prevent crowding. This prop should be given as an object with\nnumbers specified for x and y.\n\n\n@example [left, right], { x: [left, right], y: [bottom, top] }\n\n{x: [10, -10], y: 5}"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"name": "events",
|
|
286
|
-
"type": "object[]",
|
|
287
|
-
"description": "The event prop take an array of event objects. Event objects are composed of\na target, an eventKey, and eventHandlers. Targets may be any valid style namespace\nfor a given component, so \"axis\", \"axisLabel\", \"ticks\", \"tickLabels\", and \"grid\" are\nall valid targets for ChartAxis events. The eventKey may optionally be used to select a\nsingle element by index rather than an entire set. The eventHandlers object\nshould be given as an object whose keys are standard event names (i.e. onClick)\nand whose values are event callbacks. The return value of an event handler\nbe used to modify other elements. The return value should be given as an object or\nan array of objects with optional target and eventKey keys, and a mutation\nkey whose value is a function. The target and eventKey keys will default to those\ncorresponding to the element the event handler was attached to. The mutation\nfunction will be called with the calculated props for the individual selected\nelement (i.e. a single tick), and the object returned from the mutation function\nwill override the props of the selected element via object assignment.\n\n\n@example\nevents={[\n {\n target: \"grid\",\n eventKey: 2,\n eventHandlers: {\n onClick: () => {\n return [\n {\n mutation: (props) => {\n return {style: merge({}, props.style, {stroke: \"orange\"})};\n }\n }, {\n target: \"tickLabels\",\n mutation: () => {\n return {text: \"hey\"};\n }\n }\n ];\n }\n }\n }\n]}"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "externalEventMutations",
|
|
291
|
-
"type": "object[]",
|
|
292
|
-
"description": "ChartAxis uses the standard externalEventMutations prop."
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "fixAxisLabelHeight",
|
|
296
|
-
"type": "boolean",
|
|
297
|
-
"description": "When true, this prop adjusts the height between the axis label and bottom positioned legend"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "fixLabelOverlap",
|
|
301
|
-
"type": "boolean",
|
|
302
|
-
"description": "When true, this prop reduces the number of tick labels to fit the length of the axis.\nLabels are removed at approximately even intervals from the original array of labels.\nThis feature only works well for labels that are approximately evenly spaced."
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "gridComponent",
|
|
306
|
-
"type": "React.ReactElement<any>",
|
|
307
|
-
"description": "The gridComponent prop takes in an entire component which will be used\nto create grid lines. The new element created from the passed gridComponent\nwill be supplied with the following properties: x1, y1, x2, y2, tick, style and events.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a gridComponent\nis not supplied, ChartAxis will render its default GridLine component."
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"name": "groupComponent",
|
|
311
|
-
"type": "React.ReactElement<any>",
|
|
312
|
-
"description": "The groupComponent prop takes an entire component which will be used to\ncreate group elements for use within container elements. This prop defaults\nto a <g> tag on web, and a react-native-svg <G> tag on mobile"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "height",
|
|
316
|
-
"type": "number",
|
|
317
|
-
"description": "Specifies the height the svg viewBox of the chart container. This value should be given as a\nnumber of pixels.\n\nBecause Victory renders responsive containers, the width and height props do not determine the width and\nheight of the chart in number of pixels, but instead define an aspect ratio for the chart. The exact number of\npixels will depend on the size of the container the chart is rendered into."
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "invertAxis",
|
|
321
|
-
"type": "boolean",
|
|
322
|
-
"description": "If true, this value will flip the domain of a given axis."
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "label",
|
|
326
|
-
"type": "any",
|
|
327
|
-
"description": "The label prop defines the label that will appear along the axis. This\nprop should be given as a value or an entire, HTML-complete label\ncomponent. If a label component is given, it will be cloned. The new\nelement's properties x, y, textAnchor, verticalAnchor, and transform\nwill have defaults provided by the axis; styles filled out with\ndefaults provided by the axis, and overrides from the label component.\nIf a value is given, a new ChartLabel will be created with props and\nstyles from the axis."
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"name": "maxDomain",
|
|
331
|
-
"type": "number | { x?: number; y?: number }",
|
|
332
|
-
"description": "The maxDomain prop defines a maximum domain value for a chart. This prop is useful in situations where the maximum\ndomain of a chart is static, while the minimum value depends on data or other variable information. If the domain\nprop is set in addition to maximumDomain, domain will be used.\n\nNote: The x value supplied to the maxDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nmaxDomain={0}\nmaxDomain={{ y: 0 }}"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "minDomain",
|
|
336
|
-
"type": "number | { x?: number; y?: number }",
|
|
337
|
-
"description": "The minDomain prop defines a minimum domain value for a chart. This prop is useful in situations where the minimum\ndomain of a chart is static, while the maximum value depends on data or other variable information. If the domain\nprop is set in addition to minimumDomain, domain will be used.\n\nNote: The x value supplied to the minDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nminDomain={0}\nminDomain={{ y: 0 }}"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"name": "name",
|
|
341
|
-
"type": "string",
|
|
342
|
-
"description": "The name prop is typically used to reference a component instance when defining shared events. However, this\noptional prop may also be applied to child elements as an ID prefix. This is a workaround to ensure Victory\nbased components output unique IDs when multiple charts appear in a page."
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "offsetX",
|
|
346
|
-
"type": "number",
|
|
347
|
-
"description": "This value describes how far from the \"edge\" of its permitted area each axis\nwill be set back in the x-direction. If this prop is not given,\nthe offset is calculated based on font size, axis orientation, and label padding."
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"name": "offsetY",
|
|
351
|
-
"type": "number",
|
|
352
|
-
"description": "This value describes how far from the \"edge\" of its permitted area each axis\nwill be set back in the y-direction. If this prop is not given,\nthe offset is calculated based on font size, axis orientation, and label padding."
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"name": "orientation",
|
|
356
|
-
"type": "string",
|
|
357
|
-
"description": "The orientation prop specifies the position and orientation of your axis.\nValid values are 'top', 'bottom', 'left' and 'right'."
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"name": "padding",
|
|
361
|
-
"type": "number | { top: number, bottom: number, left: number, right: number }",
|
|
362
|
-
"description": "The padding props specifies the amount of padding in number of pixels between\nthe edge of the chart and any rendered child components. This prop can be given\nas a number or as an object with padding specified for top, bottom, left\nand right."
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"name": "range",
|
|
366
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
367
|
-
"description": "The range prop describes the dimensions over which data may be plotted. For cartesian coordinate systems, this\ncorresponds to minimum and maximum svg coordinates in the x and y dimension. In polar coordinate systems this\ncorresponds to a range of angles and radii. When this value is not given it will be calculated from the width,\nheight, and padding, or from the startAngle and endAngle in the case of polar charts. All components in a given\nchart must share the same range, so setting this prop on children nested within Chart, ChartStack, or\nChartGroup will have no effect. This prop is usually not set manually.\n\n\n@example [low, high] | { x: [low, high], y: [low, high] }\n\nCartesian: range={{ x: [50, 250], y: [50, 250] }}\nPolar: range={{ x: [0, 360], y: [0, 250] }}"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "scale",
|
|
371
|
-
"type": "string | { x: string, y: string }",
|
|
372
|
-
"description": "The scale prop determines which scales your chart should use. This prop can be\ngiven as a string specifying a supported scale (\"linear\", \"time\", \"log\", \"sqrt\"),\nas a d3 scale function, or as an object with scales specified for x and y\n\n\n@example d3Scale.time(), {x: \"linear\", y: \"log\"}"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"name": "showGrid",
|
|
376
|
-
"type": "boolean",
|
|
377
|
-
"description": "Show axis grid and ticks",
|
|
378
|
-
"defaultValue": "false"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"name": "singleQuadrantDomainPadding",
|
|
382
|
-
"type": "boolean | { x?: boolean; y?: boolean }",
|
|
383
|
-
"description": "By default domainPadding is coerced to existing quadrants. This means that if a given domain only includes positive\nvalues, no amount of padding applied by domainPadding will result in a domain with negative values. This is the\ndesired behavior in most cases. For users that need to apply padding without regard to quadrant, the\nsingleQuadrantDomainPadding prop may be used. This prop may be given as a boolean or an object with boolean values\nspecified for \"x\" and/or \"y\". When this prop is false (or false for a given dimension), padding will be applied\nwithout regard to quadrant. If this prop is not specified, domainPadding will be coerced to existing quadrants.\n\nNote: The x value supplied to the singleQuadrantDomainPadding prop refers to the independent variable, and the y\nvalue refers to the dependent variable. This may cause confusion in horizontal charts, as the independent variable\nwill corresponds to the y axis.\n\n@example\n\nsingleQuadrantDomainPadding={false}\nsingleQuadrantDomainPadding={{ x: false }}"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "standalone",
|
|
387
|
-
"type": "boolean",
|
|
388
|
-
"description": "The standalone prop determines whether the component will render a standalone svg\nor a <g> tag that will be included in an external svg. Set standalone to false to\ncompose ChartAxis with other components within an enclosing <svg> tag."
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"name": "style",
|
|
392
|
-
"type": "{ axis: object, axisLabel: object, grid: object, ticks: object, tickLabels: object }",
|
|
393
|
-
"description": "The style prop defines the style of the component. The style prop should be given as an object\nwith styles defined for parent, axis, axisLabel, grid, ticks, and tickLabels. Any valid svg\nstyles are supported, but width, height, and padding should be specified via props as they\ndetermine relative layout for components in Chart. Functional styles may be defined for\ngrid, tick, and tickLabel style properties, and they will be evaluated with each tick.\n\nNote: When a component is rendered as a child of another Victory component, or within a custom\n<svg> element with standalone={false} parent styles will be applied to the enclosing <g> tag.\nMany styles that can be applied to a parent <svg> will not be expressed when applied to a <g>.\n\nNote: custom angle and verticalAnchor properties may be included in labels styles."
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "theme",
|
|
397
|
-
"type": "object",
|
|
398
|
-
"description": "The theme prop takes a style object with nested data, labels, and parent objects.\nYou can create this object yourself, or you can use a theme provided by\nWhen using ChartAxis as a solo component, implement the theme directly on\nChartAxis. If you are wrapping ChartAxis in ChartChart or ChartGroup,\nplease call the theme on the outermost wrapper component instead.",
|
|
399
|
-
"defaultValue": "getTheme(themeColor)"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "themeColor",
|
|
403
|
-
"type": "string",
|
|
404
|
-
"description": "Specifies the theme color. Valid values are 'blue', 'green', 'multi', etc.\n\nNote: Not compatible with theme prop\n\n@example themeColor={ChartThemeColor.blue}"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"name": "tickComponent",
|
|
408
|
-
"type": "React.ReactElement<any>",
|
|
409
|
-
"description": "The tickComponent prop takes in an entire component which will be used\nto create tick lines. The new element created from the passed tickComponent\nwill be supplied with the following properties: x1, y1, x2, y2, tick, style and events.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a tickComponent\nis not supplied, ChartAxis will render its default Tick component."
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"name": "tickCount",
|
|
413
|
-
"type": "number",
|
|
414
|
-
"description": "The tickCount prop specifies approximately how many ticks should be drawn on the axis if\ntickValues are not explicitly provided. This value is calculated by d3 scale and\nprioritizes returning \"nice\" values and evenly spaced ticks over an exact number of ticks.\nIf you need an exact number of ticks, please specify them via the tickValues prop.\nThis prop must have a value greater than zero."
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "tickFormat",
|
|
418
|
-
"type": "any[] | ((tick: any, index: number, ticks: any[]) => string | number)",
|
|
419
|
-
"description": "The tickFormat prop specifies how tick values should be expressed visually.\ntickFormat can be given as a function to be applied to every tickValue, or as\nan array of display values for each tickValue.\n\n@example d3.time.format(\"%Y\"), (x) => x.toPrecision(2), [\"first\", \"second\", \"third\"]"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"name": "tickLabelComponent",
|
|
423
|
-
"type": "React.ReactElement<any>",
|
|
424
|
-
"description": "The tickLabelComponent prop takes in an entire component which will be used\nto create the tick labels. The new element created from the passed tickLabelComponent\nwill be supplied with the following properties: x, y, verticalAnchor, textAnchor,\nangle, tick, style and events. Any of these props may be overridden by\npassing in props to the supplied component, or modified or ignored within\nthe custom component itself. If an tickLabelComponent is not supplied, a new\nChartLabel will be created with props described above",
|
|
425
|
-
"defaultValue": "<ChartLabel />"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"name": "tickValues",
|
|
429
|
-
"type": "any[]",
|
|
430
|
-
"description": "The tickValues prop explicitly specifies which tick values to draw on the axis.\n\n@example [\"apples\", \"bananas\", \"oranges\"], [2, 4, 6, 8]"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"name": "width",
|
|
434
|
-
"type": "number",
|
|
435
|
-
"description": "Specifies the width of the svg viewBox of the chart container. This value should be given as a\nnumber of pixels.\n\nBecause Victory renders responsive containers, the width and height props do not determine the width and\nheight of the chart in number of pixels, but instead define an aspect ratio for the chart. The exact number of\npixels will depend on the size of the container the chart is rendered into.\n\nNote: innerRadius may need to be set when using this property."
|
|
436
|
-
}
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"name": "ChartBar",
|
|
441
|
-
"description": "ChartBar renders a dataset as series of bars. ChartBar can be composed with Chart to create bar charts.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-bar/src/index.d.ts",
|
|
442
|
-
"props": [
|
|
443
|
-
{
|
|
444
|
-
"name": "alignment",
|
|
445
|
-
"type": "string",
|
|
446
|
-
"description": "The alignment prop specifies how bars should be aligned relative to their data points.\nThis prop may be given as “start”, “middle” or “end”. When this prop is not specified,\nbars will have “middle” alignment relative to their data points."
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "animate",
|
|
450
|
-
"type": "boolean | object",
|
|
451
|
-
"description": "The animate prop specifies props for VictoryAnimation to use.\nThe animate prop should also be used to specify enter and exit\ntransition configurations with the `onExit` and `onEnter` namespaces respectively.\n\n\n@example {duration: 500, onExit: () => {}, onEnter: {duration: 500, before: () => ({y: 0})})}"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"name": "barRatio",
|
|
455
|
-
"type": "number",
|
|
456
|
-
"description": "The barRatio prop specifies an approximate ratio between bar widths and spaces between bars.\nWhen width is not specified via the barWidth prop or in bar styles, the barRatio prop will\nbe used to calculate a default width for each bar given the total number of bars in the data series\nand the overall width of the chart."
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"name": "barWidth",
|
|
460
|
-
"type": "number | Function",
|
|
461
|
-
"description": "The barWidth prop is used to specify the width of each bar. This prop may be given as\na number of pixels or as a function that returns a number. When this prop is given as\na function, it will be evaluated with the arguments datum, and active. When this value\nis not given, a default value will be calculated based on the overall dimensions of\nthe chart, and the number of bars."
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"name": "categories",
|
|
465
|
-
"type": "string[] | { x: string[], y: string[] }",
|
|
466
|
-
"description": "The categories prop specifies how categorical data for a chart should be ordered.\nThis prop should be given as an array of string values, or an object with\nthese arrays of values specified for x and y. If this prop is not set,\ncategorical data will be plotted in the order it was given in the data array\n\n\n@example [\"dogs\", \"cats\", \"mice\"]"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"name": "containerComponent",
|
|
470
|
-
"type": "React.ReactElement<any>",
|
|
471
|
-
"description": "The containerComponent prop takes an entire component which will be used to\ncreate a container element for standalone charts.\nThe new element created from the passed containerComponent wil be provided with\nthese props from ChartBar: height, width, children\n(the chart itself) and style. Props that are not provided by the\nchild chart component include title and desc, both of which\nare intended to add accessibility to Victory components. The more descriptive these props\nare, the more accessible your data will be for people using screen readers.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a dataComponent is\nnot provided, ChartBar will use the default ChartContainer component.\n\n@example <ChartContainer title=\"Chart of Dog Breeds\" desc=\"This chart shows...\" />",
|
|
472
|
-
"defaultValue": "<ChartContainer />"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"name": "cornerRadius",
|
|
476
|
-
"type": "Function | number | { top, bottom, topLeft, topRight, bottomLeft, bottomRight }",
|
|
477
|
-
"description": "The cornerRadius prop specifies a radius to apply to each bar.\nIf this prop is given as a single number, the radius will only be applied to the top of each bar.\nWhen this prop is given as a function, it will be evaluated with the arguments datum, and active.\n\n\n@example {topLeft: ({ datum }) => datum.x * 4}"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"name": "data",
|
|
481
|
-
"type": "any[]",
|
|
482
|
-
"description": "The data prop specifies the data to be plotted. Data should be in the form of an array\nof data points, or an array of arrays of data points for multiple datasets.\nEach data point may be any format you wish (depending on the `x` and `y` accessor props),\nbut by default, an object with x and y properties is expected.\n\n@example\n\n[{x: 1, y: 2}, {x: 2, y: 3}], [[1, 2], [2, 3]],\n[[{x: \"a\", y: 1}, {x: \"b\", y: 2}], [{x: \"a\", y: 2}, {x: \"b\", y: 3}]]"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"name": "dataComponent",
|
|
486
|
-
"type": "React.ReactElement<any>",
|
|
487
|
-
"description": "The dataComponent prop takes an entire component which will be used to create a bar.\nThe new element created from the passed dataComponent will be provided with the\nfollowing properties calculated by ChartBar: a scale, style, events, interpolation,\nand an array of modified data objects (including x, y, and calculated y0 and y1).\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a dataComponent is\nnot provided, ChartBar will use its default Bar component."
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"name": "domain",
|
|
491
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
492
|
-
"description": "The domain prop describes the range of values your chart will cover. This prop can be\ngiven as a array of the minimum and maximum expected values for your bar chart,\nor as an object that specifies separate arrays for x and y.\nIf this prop is not provided, a domain will be calculated from data, or other\navailable information.\n\n\n@example [low, high], { x: [low, high], y: [low, high] }\n\n[-1, 1], {x: [0, 100], y: [0, 1]}"
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
"name": "domainPadding",
|
|
496
|
-
"type": "number | number[] | { x: number[], y: number[] }",
|
|
497
|
-
"description": "The domainPadding prop specifies a number of pixels of padding to add to the\nbeginning and end of a domain. This prop is useful for explicitly spacing ticks farther\nfrom the origin to prevent crowding. This prop should be given as an object with\nnumbers specified for x and y.\n\n\n@example [left, right], { x: [left, right], y: [bottom, top] }\n\n{x: [10, -10], y: 5}"
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
"name": "eventKey",
|
|
501
|
-
"type": "number | string | Function",
|
|
502
|
-
"description": "Similar to data accessor props `x` and `y`, this prop may be used to functionally\nassign eventKeys to data"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"name": "events",
|
|
506
|
-
"type": "object[]",
|
|
507
|
-
"description": "The event prop take an array of event objects. Event objects are composed of\na target, an eventKey, and eventHandlers. Targets may be any valid style namespace\nfor a given component, so \"data\" and \"labels\" are all valid targets for VictoryBar events.\nThe eventKey may optionally be used to select a single element by index rather than an entire\nset. The eventHandlers object should be given as an object whose keys are standard\nevent names (i.e. onClick) and whose values are event callbacks. The return value\nof an event handler is used to modify elements. The return value should be given\nas an object or an array of objects with optional target and eventKey keys,\nand a mutation key whose value is a function. The target and eventKey keys\nwill default to those corresponding to the element the event handler was attached to.\nThe mutation function will be called with the calculated props for the individual selected\nelement (i.e. a single bar), and the object returned from the mutation function\nwill override the props of the selected element via object assignment.\n\n\n@example\nevents={[\n {\n target: \"data\",\n eventKey: \"thisOne\",\n eventHandlers: {\n onClick: () => {\n return [\n {\n eventKey: \"theOtherOne\",\n mutation: (props) => {\n return {style: merge({}, props.style, {fill: \"orange\"})};\n }\n }, {\n eventKey: \"theOtherOne\",\n target: \"labels\",\n mutation: () => {\n return {text: \"hey\"};\n }\n }\n ];\n }\n }\n }\n]}"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"name": "externalEventMutations",
|
|
511
|
-
"type": "object[]",
|
|
512
|
-
"description": "ChartBar uses the standard externalEventMutations prop."
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"name": "groupComponent",
|
|
516
|
-
"type": "React.ReactElement<any>",
|
|
517
|
-
"description": "The groupComponent prop takes an entire component which will be used to\ncreate group elements for use within container elements. This prop defaults\nto a <g> tag on web, and a react-native-svg <G> tag on mobile"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"name": "height",
|
|
521
|
-
"type": "number",
|
|
522
|
-
"description": "The height props specifies the height the svg viewBox of the chart container.\nThis value should be given as a number of pixels"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"name": "horizontal",
|
|
526
|
-
"type": "boolean",
|
|
527
|
-
"description": "The horizontal prop determines whether the bars will be laid vertically or\nhorizontally. The bars will be vertical if this prop is false or unspecified,\nor horizontal if the prop is set to true."
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"name": "labelComponent",
|
|
531
|
-
"type": "React.ReactElement<any>",
|
|
532
|
-
"description": "The labelComponent prop takes in an entire label component which will be used\nto create a label for the bar. The new element created from the passed labelComponent\nwill be supplied with the following properties: x, y, index, data, verticalAnchor,\ntextAnchor, angle, style, text, and events. any of these props may be overridden\nby passing in props to the supplied component, or modified or ignored within\nthe custom component itself. If labelComponent is omitted, a new ChartLabel\nwill be created with props described above. This labelComponent prop should be used to\nprovide a series label for ChartBar. If individual labels are required for each\ndata point, they should be created by composing ChartBar with VictoryScatter"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "labels",
|
|
536
|
-
"type": "string[] | number[] | ((data: any) => string | number | null)",
|
|
537
|
-
"description": "The labels prop defines labels that will appear above each bar in your chart.\nThis prop should be given as an array of values or as a function of data.\nIf given as an array, the number of elements in the array should be equal to\nthe length of the data array. Labels may also be added directly to the data object\nlike data={[{x: 1, y: 1, label: \"first\"}]}.\n\n@example [\"spring\", \"summer\", \"fall\", \"winter\"], (datum) => datum.title"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"name": "maxDomain",
|
|
541
|
-
"type": "number | { x?: number; y?: number }",
|
|
542
|
-
"description": "The maxDomain prop defines a maximum domain value for a chart. This prop is useful in situations where the maximum\ndomain of a chart is static, while the minimum value depends on data or other variable information. If the domain\nprop is set in addition to maximumDomain, domain will be used.\n\nNote: The x value supplied to the maxDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nmaxDomain={0}\nmaxDomain={{ y: 0 }}"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "minDomain",
|
|
546
|
-
"type": "number | { x?: number; y?: number }",
|
|
547
|
-
"description": "The minDomain prop defines a minimum domain value for a chart. This prop is useful in situations where the minimum\ndomain of a chart is static, while the maximum value depends on data or other variable information. If the domain\nprop is set in addition to minimumDomain, domain will be used.\n\nNote: The x value supplied to the minDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nminDomain={0}\nminDomain={{ y: 0 }}"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"name": "name",
|
|
551
|
-
"type": "string",
|
|
552
|
-
"description": "The name prop is used to reference a component instance when defining shared events."
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"name": "origin",
|
|
556
|
-
"type": "{ x: number, y: number }",
|
|
557
|
-
"description": "Victory components will pass an origin prop is to define the center point in svg coordinates for polar charts.\n\nNote: It will not typically be necessary to set an origin prop manually"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"name": "padding",
|
|
561
|
-
"type": "number | { top: number, bottom: number, left: number, right: number }",
|
|
562
|
-
"description": "The padding props specifies the amount of padding in number of pixels between\nthe edge of the chart and any rendered child components. This prop can be given\nas a number or as an object with padding specified for top, bottom, left\nand right."
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
"name": "range",
|
|
566
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
567
|
-
"description": "The range prop describes the dimensions over which data may be plotted. For cartesian coordinate systems, this\ncorresponds to minimum and maximum svg coordinates in the x and y dimension. In polar coordinate systems this\ncorresponds to a range of angles and radii. When this value is not given it will be calculated from the width,\nheight, and padding, or from the startAngle and endAngle in the case of polar charts. All components in a given\nchart must share the same range, so setting this prop on children nested within Chart or\nChartGroup will have no effect. This prop is usually not set manually.\n\n\n@example [low, high] | { x: [low, high], y: [low, high] }\n\nCartesian: range={{ x: [50, 250], y: [50, 250] }}\nPolar: range={{ x: [0, 360], y: [0, 250] }}"
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"name": "samples",
|
|
571
|
-
"type": "number",
|
|
572
|
-
"description": "The samples prop specifies how many individual points to plot when plotting\ny as a function of x. Samples is ignored if x props are provided instead."
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
"name": "scale",
|
|
576
|
-
"type": "string | { x: string, y: string }",
|
|
577
|
-
"description": "The scale prop determines which scales your chart should use. This prop can be\ngiven as a string specifying a supported scale (\"linear\", \"time\", \"log\", \"sqrt\"),\nas a d3 scale function, or as an object with scales specified for x and y\n\n\n@example d3Scale.time(), {x: \"linear\", y: \"log\"}"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"name": "singleQuadrantDomainPadding",
|
|
581
|
-
"type": "boolean | { x?: boolean; y?: boolean }",
|
|
582
|
-
"description": "By default domainPadding is coerced to existing quadrants. This means that if a given domain only includes positive\nvalues, no amount of padding applied by domainPadding will result in a domain with negative values. This is the\ndesired behavior in most cases. For users that need to apply padding without regard to quadrant, the\nsingleQuadrantDomainPadding prop may be used. This prop may be given as a boolean or an object with boolean values\nspecified for \"x\" and/or \"y\". When this prop is false (or false for a given dimension), padding will be applied\nwithout regard to quadrant. If this prop is not specified, domainPadding will be coerced to existing quadrants.\n\nNote: The x value supplied to the singleQuadrantDomainPadding prop refers to the independent variable, and the y\nvalue refers to the dependent variable. This may cause confusion in horizontal charts, as the independent variable\nwill corresponds to the y axis.\n\n@example\n\nsingleQuadrantDomainPadding={false}\nsingleQuadrantDomainPadding={{ x: false }}"
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"name": "sortKey",
|
|
586
|
-
"type": "number | string | Function | string[]",
|
|
587
|
-
"description": "Use the sortKey prop to indicate how data should be sorted. This prop\nis given directly to the lodash sortBy function to be executed on the\nfinal dataset."
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "sortOrder",
|
|
591
|
-
"type": "string",
|
|
592
|
-
"description": "The sortOrder prop specifies whether sorted data should be returned in 'ascending' or 'descending' order."
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"name": "standalone",
|
|
596
|
-
"type": "boolean",
|
|
597
|
-
"description": "The standalone prop determines whether the component will render a standalone svg\nor a <g> tag that will be included in an external svg. Set standalone to false to\ncompose ChartBar with other components within an enclosing <svg> tag."
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"name": "style",
|
|
601
|
-
"type": "{ parent: object, data: object, labels: object }",
|
|
602
|
-
"description": "The style prop specifies styles for your ChartBar. Any valid inline style properties\nwill be applied. Height, width, and padding should be specified via the height,\nwidth, and padding props, as they are used to calculate the alignment of\ncomponents within chart.\n\n\n@example {data: {fill: \"red\"}, labels: {fontSize: 12}}"
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"name": "theme",
|
|
606
|
-
"type": "object",
|
|
607
|
-
"description": "The theme prop takes a style object with nested data, labels, and parent objects.\nYou can create this object yourself, or you can use a theme provided by\nWhen using ChartBar as a solo component, implement the theme directly on\nChartBar. If you are wrapping ChartBar in ChartChart or ChartGroup,\nplease call the theme on the outermost wrapper component instead.",
|
|
608
|
-
"defaultValue": "getTheme(themeColor)"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"name": "themeColor",
|
|
612
|
-
"type": "string",
|
|
613
|
-
"description": "Specifies the theme color. Valid values are 'blue', 'green', 'multi', etc.\n\nNote: Not compatible with theme prop\n\n@example themeColor={ChartThemeColor.blue}"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"name": "width",
|
|
617
|
-
"type": "number",
|
|
618
|
-
"description": "The width props specifies the width of the svg viewBox of the chart container\nThis value should be given as a number of pixels"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"name": "x",
|
|
622
|
-
"type": "number | string | Function | string[]",
|
|
623
|
-
"description": "The x prop specifies how to access the X value of each data point.\nIf given as a function, it will be run on each data point, and returned value will be used.\nIf given as an integer, it will be used as an array index for array-type data points.\nIf given as a string, it will be used as a property key for object-type data points.\nIf given as an array of strings, or a string containing dots or brackets,\nit will be used as a nested object property path (for details see Lodash docs for _.get).\nIf `null` or `undefined`, the data value will be used as is (identity function/pass-through).\n\n\n@example 0, 'x', 'x.value.nested.1.thing', 'x[2].also.nested', null, d => Math.sin(d)"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"name": "y",
|
|
627
|
-
"type": "number | string | Function | string[]",
|
|
628
|
-
"description": "The y prop specifies how to access the Y value of each data point.\nIf given as a function, it will be run on each data point, and returned value will be used.\nIf given as an integer, it will be used as an array index for array-type data points.\nIf given as a string, it will be used as a property key for object-type data points.\nIf given as an array of strings, or a string containing dots or brackets,\nit will be used as a nested object property path (for details see Lodash docs for _.get).\nIf `null` or `undefined`, the data value will be used as is (identity function/pass-through).\n\n\n@example 0, 'y', 'y.value.nested.1.thing', 'y[2].also.nested', null, d => Math.sin(d)"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"name": "y0",
|
|
632
|
-
"type": "number | string | Function | string[]",
|
|
633
|
-
"description": "Use y0 data accessor prop to determine how the component defines the baseline y0 data.\nThis prop is useful for defining custom baselines for components like ChartBar.\nThis prop may be given in a variety of formats.\n\n\n@example 'last_quarter_profit', () => 10, 1, 'employees.salary', [\"employees\", \"salary\"]"
|
|
634
|
-
}
|
|
635
|
-
]
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"name": "ChartGroup",
|
|
639
|
-
"description": "ChartGroup is a wrapper component that renders a given set of children with some shared props. ChartGroup reconciles\nthe domain and layout for all its children, and coordinates animations and shared events. ChartGroup may also be used\nto supply common data and styles to all its children. This is especially useful when adding markers to a line, or\nadding voronoi tooltips to data. ChartGroup may also be used to apply an offset to a group of children, as with\ngrouped bar charts, or may be used to stack several components on the same level, e.g., stacked area charts with\ndata markers.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-group/src/index.d.ts",
|
|
640
|
-
"props": [
|
|
641
|
-
{
|
|
642
|
-
"name": "animate",
|
|
643
|
-
"type": "boolean | object",
|
|
644
|
-
"description": "The animate prop specifies props for VictoryAnimation to use.\nThe animate prop should also be used to specify enter and exit\ntransition configurations with the `onExit` and `onEnter` namespaces respectively.\n\n\n@example\n{duration: 500, onExit: () => {}, onEnter: {duration: 500, before: () => ({y: 0})})}"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"name": "ariaDesc",
|
|
648
|
-
"type": "string",
|
|
649
|
-
"description": "The ariaDesc prop specifies the description of the chart/SVG to assist with\naccessibility for screen readers.\n\nNote: Overridden by the desc prop of containerComponent"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"name": "ariaTitle",
|
|
653
|
-
"type": "string",
|
|
654
|
-
"description": "The ariaTitle prop specifies the title to be applied to the SVG to assist\naccessibility for screen readers.\n\nNote: Overridden by the title prop of containerComponent"
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
"name": "categories",
|
|
658
|
-
"type": "string[] | { x: string[], y: string[] }",
|
|
659
|
-
"description": "The categories prop specifies how categorical data for a chart should be ordered.\nThis prop should be given as an array of string values, or an object with\nthese arrays of values specified for x and y. If this prop is not set,\ncategorical data will be plotted in the order it was given in the data array\n\n\n@example [\"dogs\", \"cats\", \"mice\"]"
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"name": "children",
|
|
663
|
-
"type": "React.ReactNode | React.ReactNode[]",
|
|
664
|
-
"description": "The children to render with the chart"
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
"name": "color",
|
|
668
|
-
"type": "string",
|
|
669
|
-
"description": "The color prop is an optional prop that defines a single color to be applied to the\nchildren of ChartGroup. The color prop will override colors specified via colorScale."
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"name": "colorScale",
|
|
673
|
-
"type": "string[]",
|
|
674
|
-
"description": "The colorScale prop is an optional prop that defines the color scale the chart's bars\nwill be created on. This prop should be given as an array of CSS colors, or as a string\ncorresponding to one of the built in color scales. ChartGroup will automatically assign\nvalues from this color scale to the bars unless colors are explicitly provided in the\n`dataAttributes` prop."
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
"name": "containerComponent",
|
|
678
|
-
"type": "React.ReactElement<any>",
|
|
679
|
-
"description": "The containerComponent prop takes an entire component which will be used to\ncreate a container element for standalone charts.\nThe new element created from the passed containerComponent wil be provided with\nthese props from ChartGroup: height, width, children\n(the chart itself) and style. Props that are not provided by the\nchild chart component include title and desc, both of which\nare intended to add accessibility to Victory components. The more descriptive these props\nare, the more accessible your data will be for people using screen readers.\nAny of these props may be overridden by passing in props to the supplied component,\nor modified or ignored within the custom component itself. If a dataComponent is\nnot provided, ChartGroup will use the default ChartContainer component.\n\n@example <ChartContainer title=\"Chart of Dog Breeds\" desc=\"This chart shows...\" />",
|
|
680
|
-
"defaultValue": "<ChartContainer />"
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
"name": "data",
|
|
684
|
-
"type": "any[]",
|
|
685
|
-
"description": "The data prop specifies the data to be plotted. Data should be in the form of an array\nof data points, or an array of arrays of data points for multiple datasets.\nEach data point may be any format you wish (depending on the `x` and `y` accessor props),\nbut by default, an object with x and y properties is expected.\n\n@example [{x: 1, y: 2}, {x: 2, y: 3}], [[1, 2], [2, 3]],\n[[{x: \"a\", y: 1}, {x: \"b\", y: 2}], [{x: \"a\", y: 2}, {x: \"b\", y: 3}]]"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
"name": "domain",
|
|
689
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
690
|
-
"description": "The domain prop describes the range of values your chart will cover. This prop can be\ngiven as a array of the minimum and maximum expected values for your bar chart,\nor as an object that specifies separate arrays for x and y.\nIf this prop is not provided, a domain will be calculated from data, or other\navailable information.\n\n\n@example [low, high], { x: [low, high], y: [low, high] }\n\n[-1, 1], {x: [0, 100], y: [0, 1]}"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"name": "domainPadding",
|
|
694
|
-
"type": "number | number[] | { x: number[], y: number[] }",
|
|
695
|
-
"description": "The domainPadding prop specifies a number of pixels of padding to add to the\nbeginning and end of a domain. This prop is useful for explicitly spacing ticks farther\nfrom the origin to prevent crowding. This prop should be given as an object with\nnumbers specified for x and y.\n\n\n@example [left, right], { x: [left, right], y: [bottom, top] }\n\n{x: [10, -10], y: 5}"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"name": "eventKey",
|
|
699
|
-
"type": "number | string | Function",
|
|
700
|
-
"description": "Similar to data accessor props `x` and `y`, this prop may be used to functionally\nassign eventKeys to data"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"name": "events",
|
|
704
|
-
"type": "object[]",
|
|
705
|
-
"description": "The event prop take an array of event objects. Event objects are composed of\na target, an eventKey, and eventHandlers. Targets may be any valid style namespace\nfor a given component, so \"data\" and \"labels\" are all valid targets for ChartGroup events.\nSince ChartGroup only renders a single element, the eventKey property is not used.\nThe eventHandlers object should be given as an object whose keys are standard\nevent names (i.e. onClick) and whose values are event callbacks. The return value\nof an event handler is used to modify elements. The return value should be given\nas an object or an array of objects with optional target and eventKey keys,\nand a mutation key whose value is a function. The target and eventKey keys\nwill default to those corresponding to the element the event handler was attached to.\nThe mutation function will be called with the calculated props for the individual selected\nelement (i.e. an area), and the object returned from the mutation function\nwill override the props of the selected element via object assignment.\n\n\n@example\nevents={[\n {\n target: \"data\",\n eventHandlers: {\n onClick: () => {\n return [\n {\n mutation: (props) => {\n return {style: merge({}, props.style, {fill: \"orange\"})};\n }\n }, {\n target: \"labels\",\n mutation: () => {\n return {text: \"hey\"};\n }\n }\n ];\n }\n }\n }\n]}"
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"name": "externalEventMutations",
|
|
709
|
-
"type": "object[]",
|
|
710
|
-
"description": "ChartGroup uses the standard externalEventMutations prop."
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"name": "groupComponent",
|
|
714
|
-
"type": "React.ReactElement<any>",
|
|
715
|
-
"description": "The groupComponent prop takes an entire component which will be used to\ncreate group elements for use within container elements. This prop defaults\nto a <g> tag on web, and a react-native-svg <G> tag on mobile"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"name": "hasPatterns",
|
|
719
|
-
"type": "boolean | boolean[]",
|
|
720
|
-
"description": "The hasPatterns prop is an optional prop that indicates whether a pattern is shown for a chart.\nSVG patterns are dynamically generated (unique to each chart) in order to apply colors from the selected\ncolor theme or custom color scale. Those generated patterns are applied in a specific order (via a URL), similar\nto the color theme ordering defined by PatternFly. If the multi-color theme was in use; for example, colorized\npatterns would be displayed in that same order. Create custom patterns via the patternScale prop.\n\nNote: Not all components are supported; for example, ChartLine, ChartBullet, ChartThreshold, etc.\n\n@example hasPatterns={ true }\n@example hasPatterns={[ true, true, false ]}"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"name": "height",
|
|
724
|
-
"type": "number",
|
|
725
|
-
"description": "The height props specifies the height the svg viewBox of the chart container.\nThis value should be given as a number of pixels"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
"name": "horizontal",
|
|
729
|
-
"type": "boolean",
|
|
730
|
-
"description": "The horizontal prop determines whether data will be plotted horizontally.\nWhen this prop is set to true, the independent variable will be plotted on the y axis\nand the dependent variable will be plotted on the x axis."
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
"name": "labelComponent",
|
|
734
|
-
"type": "React.ReactElement<any>",
|
|
735
|
-
"description": "The labelComponent prop takes in an entire label component which will be used\nto create a label for the area. The new element created from the passed labelComponent\nwill be supplied with the following properties: x, y, index, data, verticalAnchor,\ntextAnchor, angle, style, text, and events. any of these props may be overridden\nby passing in props to the supplied component, or modified or ignored within\nthe custom component itself. If labelComponent is omitted, a new ChartLabel\nwill be created with props described above. This labelComponent prop should be used to\nprovide a series label for ChartGroup. If individual labels are required for each\ndata point, they should be created by composing ChartGroup with VictoryScatter"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"name": "labels",
|
|
739
|
-
"type": "string[] | number[] | ((data: any) => string | number | null)",
|
|
740
|
-
"description": "The labels prop defines labels that will appear above each bar in your chart.\nThis prop should be given as an array of values or as a function of data.\nIf given as an array, the number of elements in the array should be equal to\nthe length of the data array. Labels may also be added directly to the data object\nlike data={[{x: 1, y: 1, label: \"first\"}]}.\n\n@example [\"spring\", \"summer\", \"fall\", \"winter\"], (datum) => datum.title"
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
"name": "maxDomain",
|
|
744
|
-
"type": "number | { x?: number; y?: number }",
|
|
745
|
-
"description": "The maxDomain prop defines a maximum domain value for a chart. This prop is useful in situations where the maximum\ndomain of a chart is static, while the minimum value depends on data or other variable information. If the domain\nprop is set in addition to maximumDomain, domain will be used.\n\nNote: The x value supplied to the maxDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nmaxDomain={0}\nmaxDomain={{ y: 0 }}"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
"name": "minDomain",
|
|
749
|
-
"type": "number | { x?: number; y?: number }",
|
|
750
|
-
"description": "The minDomain prop defines a minimum domain value for a chart. This prop is useful in situations where the minimum\ndomain of a chart is static, while the maximum value depends on data or other variable information. If the domain\nprop is set in addition to minimumDomain, domain will be used.\n\nNote: The x value supplied to the minDomain prop refers to the independent variable, and the y value refers to the\ndependent variable. This may cause confusion in horizontal charts, as the independent variable will corresponds to\nthe y axis.\n\n@example\n\nminDomain={0}\nminDomain={{ y: 0 }}"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
"name": "name",
|
|
754
|
-
"type": "string",
|
|
755
|
-
"description": "The name prop is used to reference a component instance when defining shared events."
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
"name": "offset",
|
|
759
|
-
"type": "number",
|
|
760
|
-
"description": "The offset prop determines the number of pixels each element in a group should\nbe offset from its original position of the on the independent axis. In the\ncase of groups of bars, this number should be equal to the width of the bar\nplus the desired spacing between bars."
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
"name": "origin",
|
|
764
|
-
"type": "{ x: number, y: number }",
|
|
765
|
-
"description": "Victory components will pass an origin prop is to define the center point in svg coordinates for polar charts.\n\nNote: It will not typically be necessary to set an origin prop manually"
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
"name": "padding",
|
|
769
|
-
"type": "number | { top: number, bottom: number, left: number, right: number }",
|
|
770
|
-
"description": "The padding props specifies the amount of padding in number of pixels between\nthe edge of the chart and any rendered child components. This prop can be given\nas a number or as an object with padding specified for top, bottom, left\nand right."
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
"name": "patternScale",
|
|
774
|
-
"type": "string[]",
|
|
775
|
-
"description": "The patternScale prop is an optional prop that defines patterns to apply, where applicable. This prop should be\ngiven as a string array of pattern URLs. Patterns will be assigned to children by index and will repeat when there\nare more children than patterns in the provided patternScale. Use null to omit the pattern for a given index.\n\nNote: Not all components are supported; for example, ChartLine, ChartBullet, ChartThreshold, etc.\n\n@example patternScale={[ 'url(\"#pattern1\")', 'url(\"#pattern2\")', null ]}"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
"name": "polar",
|
|
779
|
-
"type": "boolean",
|
|
780
|
-
"description": "Victory components can pass a boolean polar prop to specify whether a label is part of a polar chart."
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
"name": "range",
|
|
784
|
-
"type": "number[] | { x: number[], y: number[] }",
|
|
785
|
-
"description": "The range prop describes the dimensions over which data may be plotted. For cartesian coordinate systems, this\ncorresponds to minimum and maximum svg coordinates in the x and y dimension. In polar coordinate systems this\ncorresponds to a range of angles and radii. When this value is not given it will be calculated from the width,\nheight, and padding, or from the startAngle and endAngle in the case of polar charts. All components in a given\nchart must share the same range, so setting this prop on children nested within Chart,\nChartGroup will have no effect. This prop is usually not set manually.\n\n\n@example [low, high] | { x: [low, high], y: [low, high] }\n\nCartesian: range={{ x: [50, 250], y: [50, 250] }}\nPolar: range={{ x: [0, 360], y: [0, 250] }}"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"name": "samples",
|
|
789
|
-
"type": "number",
|
|
790
|
-
"description": "The samples prop specifies how many individual points to plot when plotting\ny as a function of x. Samples is ignored if x props are provided instead."
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"name": "scale",
|
|
794
|
-
"type": "string | { x: string, y: string }",
|
|
795
|
-
"description": "The scale prop determines which scales your chart should use. This prop can be\ngiven as a string specifying a supported scale (\"linear\", \"time\", \"log\", \"sqrt\"),\nas a d3 scale function, or as an object with scales specified for x and y\n\n\n@example d3Scale.time(), {x: \"linear\", y: \"log\"}"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
"name": "singleQuadrantDomainPadding",
|
|
799
|
-
"type": "boolean | { x?: boolean; y?: boolean }",
|
|
800
|
-
"description": "By default domainPadding is coerced to existing quadrants. This means that if a given domain only includes positive\nvalues, no amount of padding applied by domainPadding will result in a domain with negative values. This is the\ndesired behavior in most cases. For users that need to apply padding without regard to quadrant, the\nsingleQuadrantDomainPadding prop may be used. This prop may be given as a boolean or an object with boolean values\nspecified for \"x\" and/or \"y\". When this prop is false (or false for a given dimension), padding will be applied\nwithout regard to quadrant. If this prop is not specified, domainPadding will be coerced to existing quadrants.\n\nNote: The x value supplied to the singleQuadrantDomainPadding prop refers to the independent variable, and the y\nvalue refers to the dependent variable. This may cause confusion in horizontal charts, as the independent variable\nwill corresponds to the y axis.\n\n@example\n\nsingleQuadrantDomainPadding={false}\nsingleQuadrantDomainPadding={{ x: false }}"
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
"name": "sortKey",
|
|
804
|
-
"type": "number | string | Function | string[]",
|
|
805
|
-
"description": "Use the sortKey prop to indicate how data should be sorted. This prop\nis given directly to the lodash sortBy function to be executed on the\nfinal dataset."
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"name": "sortOrder",
|
|
809
|
-
"type": "string",
|
|
810
|
-
"description": "The sortOrder prop specifies whether sorted data should be returned in 'ascending' or 'descending' order."
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"name": "standalone",
|
|
814
|
-
"type": "boolean",
|
|
815
|
-
"description": "The standalone prop determines whether the component will render a standalone svg\nor a <g> tag that will be included in an external svg. Set standalone to false to\ncompose ChartGroup with other components within an enclosing <svg> tag."
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
"name": "style",
|
|
819
|
-
"type": "{ parent: object, data: object, labels: object }",
|
|
820
|
-
"description": "The style prop specifies styles for your ChartGroup. Any valid inline style properties\nwill be applied. Height, width, and padding should be specified via the height,\nwidth, and padding props, as they are used to calculate the alignment of\ncomponents within chart.\n\n\n@example {data: {fill: \"red\"}, labels: {fontSize: 12}}"
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
"name": "theme",
|
|
824
|
-
"type": "object",
|
|
825
|
-
"description": "The theme prop specifies a theme to use for determining styles and layout properties for a component. Any styles or\nprops defined in theme may be overwritten by props specified on the component instance.",
|
|
826
|
-
"defaultValue": "getTheme(themeColor)"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"name": "themeColor",
|
|
830
|
-
"type": "string",
|
|
831
|
-
"description": "Specifies the theme color. Valid values are 'blue', 'green', 'multi', etc.\n\nNote: Not compatible with theme prop\n\n@example themeColor={ChartThemeColor.blue}"
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
"name": "width",
|
|
835
|
-
"type": "number",
|
|
836
|
-
"description": "The width props specifies the width of the svg viewBox of the chart container\nThis value should be given as a number of pixels"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
"name": "x",
|
|
840
|
-
"type": "number | string | Function | string[]",
|
|
841
|
-
"description": "The x prop specifies how to access the X value of each data point.\nIf given as a function, it will be run on each data point, and returned value will be used.\nIf given as an integer, it will be used as an array index for array-type data points.\nIf given as a string, it will be used as a property key for object-type data points.\nIf given as an array of strings, or a string containing dots or brackets,\nit will be used as a nested object property path (for details see Lodash docs for _.get).\nIf `null` or `undefined`, the data value will be used as is (identity function/pass-through).\n\n\n@example 0, 'x', 'x.value.nested.1.thing', 'x[2].also.nested', null, d => Math.sin(d)"
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"name": "y",
|
|
845
|
-
"type": "number | string | Function | string[]",
|
|
846
|
-
"description": "The y prop specifies how to access the Y value of each data point.\nIf given as a function, it will be run on each data point, and returned value will be used.\nIf given as an integer, it will be used as an array index for array-type data points.\nIf given as a string, it will be used as a property key for object-type data points.\nIf given as an array of strings, or a string containing dots or brackets,\nit will be used as a nested object property path (for details see Lodash docs for _.get).\nIf `null` or `undefined`, the data value will be used as is (identity function/pass-through).\n\n\n@example 0, 'y', 'y.value.nested.1.thing', 'y[2].also.nested', null, d => Math.sin(d)"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"name": "y0",
|
|
850
|
-
"type": "number | string | Function | string[]",
|
|
851
|
-
"description": "Use y0 data accessor prop to determine how the component defines the baseline y0 data.\nThis prop is useful for defining custom baselines for components like ChartBar or ChartArea.\nThis prop may be given in a variety of formats.\n\n\n@example 'last_quarter_profit', () => 10, 1, 'employees.salary', [\"employees\", \"salary\"]"
|
|
852
|
-
}
|
|
853
|
-
]
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"name": "ChartLabel",
|
|
857
|
-
"description": "ChartLabel renders the label components that are used across all Victory based components.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-core/src/victory-label/victory-label.tsx",
|
|
858
|
-
"props": [
|
|
859
|
-
{
|
|
860
|
-
"name": "active",
|
|
861
|
-
"type": "boolean",
|
|
862
|
-
"description": "The active prop specifies whether the label is active or not. The active prop is set by defaultEvents in components\nlike ChartTooltip and VictorySelectionContainer. The active prop is used when evaluating functional styles and\nprops."
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
"name": "angle",
|
|
866
|
-
"type": "string | number",
|
|
867
|
-
"description": "Specifies the angle to rotate the text by."
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"name": "capHeight",
|
|
871
|
-
"type": "number | string | Function",
|
|
872
|
-
"description": "The capHeight prop defines a text metric for the font being used: the expected height of capital letters.\nThis is necessary because of SVG, which (a) positions the *bottom* of the text at `y`, and (b) has no notion of\nline height. The value should ideally use the same units as `lineHeight` and `dy`, preferably ems. If given a\nunitless number, it is assumed to be ems."
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
"name": "className",
|
|
876
|
-
"type": "string",
|
|
877
|
-
"description": "The className prop specifies a class name that will be applied to the rendered text element."
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
"name": "data",
|
|
881
|
-
"type": "any[]",
|
|
882
|
-
"description": "Labels that apply to an entire data series will receive the entire series as `data` instead of an individual datum\nprop."
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"name": "datum",
|
|
886
|
-
"type": "{}",
|
|
887
|
-
"description": "Victory components can pass a datum prop to their label component. This can be used to calculate functional styles,\nand determine child text"
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"name": "desc",
|
|
891
|
-
"type": "string",
|
|
892
|
-
"description": "The desc prop specifies the description of the chart/SVG to assist with accessibility for screen readers. The more\ndescriptive this title is, the more useful it will be for people using screen readers."
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"name": "direction",
|
|
896
|
-
"type": "'rtl' | 'ltr' | 'inherit'",
|
|
897
|
-
"description": "The direction prop determines which text direction to apply to the rendered text element"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"name": "dx",
|
|
901
|
-
"type": "number | string | Function",
|
|
902
|
-
"description": "The dx prop defines a horizontal shift from the `x` coordinate."
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "dy",
|
|
906
|
-
"type": "number | string | Function",
|
|
907
|
-
"description": "The dy prop defines a vertical shift from the `y` coordinate. Since this component already accounts for\n`capHeight`, `lineHeight`, and `verticalAnchor`, this will usually not be necessary."
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"name": "events",
|
|
911
|
-
"type": "React.DOMAttributes<any>",
|
|
912
|
-
"description": "The events prop attaches arbitrary event handlers to the label component.\nEvent handlers are currently only called with their corresponding events."
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"name": "id",
|
|
916
|
-
"type": "StringOrNumberOrCallback",
|
|
917
|
-
"description": "The id prop specifies a HTML ID that will be applied to the rendered text element."
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
"name": "inline",
|
|
921
|
-
"type": "boolean",
|
|
922
|
-
"description": "When the text property contains an array of strings, the inline property lets the <tspan /> elements lay out next\nto each other. If this property is not specified, the <tspan /> elements will stack vertically instead."
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
"name": "labelPlacement",
|
|
926
|
-
"type": "string",
|
|
927
|
-
"description": "The labelPlacement prop is used to specify the placement of labels relative to the data point they represent.\nThis prop may be given as “vertical”, “parallel” or “perpendicular”. This props is particularly useful in polar\ncharts, where it may be desirable to position a label either parallel or perpendicular to its corresponding angle.\nWhen this prop is not set, perpendicular label placement will be used for polar charts, and vertical label\nplacement will be used for cartesian charts."
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"name": "lineHeight",
|
|
931
|
-
"type": "number | string | Function",
|
|
932
|
-
"description": "The lineHeight prop defines how much space a single line of text should take up.\nNote that SVG has no notion of line-height, so the positioning may differ slightly from what you would expect with CSS,\nbut the result is similar: a roughly equal amount of extra space is distributed above and below the line of text.\nThe value should ideally use the same units as `capHeight` and `dy`, preferably ems.\nIf given a unitless number, it is assumed to be ems."
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"name": "origin",
|
|
936
|
-
"type": "{ x: number, y: number }",
|
|
937
|
-
"description": "Victory components will pass an origin prop is to define the center point in svg coordinates for polar charts.\n\nNote: It will not typically be necessary to set an origin prop manually"
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"name": "renderInPortal",
|
|
941
|
-
"type": "boolean",
|
|
942
|
-
"description": "The renderInPortal prop specifies whether ChartLabel should render text in place or within a VictoryPortal.\nSetting renderInPortal to true is equivalent to wrapping ChartLabel in a VictoryPortal. This prop is false by default."
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
"name": "style",
|
|
946
|
-
"type": "React.CSSProperties | React.CSSProperties[]",
|
|
947
|
-
"description": "The style prop applies CSS properties to the rendered `<text>` element."
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
"name": "text",
|
|
951
|
-
"type": "number | string | Function | string[]",
|
|
952
|
-
"description": "The text prop defines the text ChartLabel will render. The text prop may be given as a string, number, a function\nof datum, or an array of any of these. Strings may include newline characters, which ChartLabel will split into\nseparate <tspan/> elements. When text is given as an array, separate <tspan/> elements will be created for each\nelement in the array."
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"name": "textAnchor",
|
|
956
|
-
"type": "string | Function",
|
|
957
|
-
"description": "The textAnchor prop defines how the text is horizontally positioned relative to the given `x` and `y` coordinates.\nOptions are \"start\", \"middle\" and \"end\". Note that this overrides the style prop."
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"name": "transform",
|
|
961
|
-
"type": "string | {} | (() => string | {})",
|
|
962
|
-
"description": "The transform prop applies a transform to the rendered `<text>` element.\nIn addition to being a string, it can be an object containing transform definitions for easier authoring."
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"name": "verticalAnchor",
|
|
966
|
-
"type": "string",
|
|
967
|
-
"description": "The verticalAnchor prop defines how the text is vertically positioned relative to the given `x` and `y`\ncoordinates. Options are \"start\", \"middle\" and \"end\"."
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
"name": "x",
|
|
971
|
-
"type": "number",
|
|
972
|
-
"description": "The x prop defines the x coordinate to use as a basis for horizontal positioning."
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
"name": "y",
|
|
976
|
-
"type": "number",
|
|
977
|
-
"description": "The y prop defines the y coordinate to use as a basis for vertical positioning."
|
|
978
|
-
}
|
|
979
|
-
]
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"name": "ChartVoronoiContainer",
|
|
983
|
-
"description": "ChartVoronoiContainer adds the ability to associate a mouse position with the data point(s) closest to it. When this\ncontainer is added to a chart, changes in mouse position will add the active prop to data and label components\nclosest to the current mouse position. The closeness of data points to a given position is determined by calculating\na voronoi diagram based on the data of every child VictoryVoronoiContainer renders. This container is useful for\nadding hover interactions, like tooltips, to small data points, or charts with dense or overlapping data.\n\nSee https://github.com/FormidableLabs/victory/blob/main/packages/victory-voronoi-container/src/index.d.ts",
|
|
984
|
-
"props": [
|
|
985
|
-
{
|
|
986
|
-
"name": "activateData",
|
|
987
|
-
"type": "boolean",
|
|
988
|
-
"description": "When the activateData prop is set to true, the active prop will be set to true on all\ndata components within a voronoi area. When this prop is set to false, the onActivated\nand onDeactivated callbacks will still fire, but no mutations to data components will\noccur via Victory’s event system."
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"name": "activateLabels",
|
|
992
|
-
"type": "boolean",
|
|
993
|
-
"description": "When the activateLabels prop is set to true, the active prop will be set to true on all\nlabels corresponding to points within a voronoi area. When this prop is set to false,\nthe onActivated and onDeactivated callbacks will still fire, but no mutations to label\ncomponents will occur via Victory’s event system. Labels defined directly on\nChartVoronoiContainer via the labels prop will still appear when this prop is set to false."
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"name": "className",
|
|
997
|
-
"type": "string",
|
|
998
|
-
"description": "The className prop specifies a className that will be applied to the outermost div rendered by the container"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"name": "constrainToVisibleArea",
|
|
1002
|
-
"type": "boolean",
|
|
1003
|
-
"description": "The constrainToVisibleArea prop determines whether to coerce tooltips so that they fit within the visible area of\nthe chart. When this prop is set to true, tooltip pointers will still point to the correct data point, but the\ncenter of the tooltip will be shifted to fit within the overall width and height of the svg Victory renders.",
|
|
1004
|
-
"defaultValue": "false"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
"name": "containerId",
|
|
1008
|
-
"type": "number | string",
|
|
1009
|
-
"description": "The containerId prop may be used to set a deterministic id for the container. When a containerId is not manually\nset, a unique id will be generated. It is usually necessary to set deterministic ids for automated testing."
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
"name": "desc",
|
|
1013
|
-
"type": "string",
|
|
1014
|
-
"description": "The desc prop specifies the description of the chart/SVG to assist with\naccessibility for screen readers. The more info about the chart provided in\nthe description, the more usable it will be for people using screen readers.\nThis prop defaults to an empty string.\n\n@example \"Golden retrievers make up 30%, Labs make up 25%, and other dog breeds are\nnot represented above 5% each.\""
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
"name": "disable",
|
|
1018
|
-
"type": "boolean",
|
|
1019
|
-
"description": "When the disable prop is set to true, ChartVoronoiContainer events will not fire."
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"name": "events",
|
|
1023
|
-
"type": "React.DOMAttributes<any>",
|
|
1024
|
-
"description": "The events prop attaches arbitrary event handlers to the container component.\nEvent handlers passed from other Victory components are called with their\ncorresponding events as well as scale, style, width, height, and data when\napplicable. Use the invert method to convert event coordinate information to\ndata. `scale.x.invert(evt.offsetX)`.\n\n@example {onClick: (evt) => alert(`x: ${evt.clientX}, y: ${evt.clientY}`)}"
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
"name": "height",
|
|
1028
|
-
"type": "number",
|
|
1029
|
-
"description": "The height props specifies the height the svg viewBox of the container.\nThis value should be given as a number of pixels. If no height prop\nis given, the height prop from the child component passed will be used."
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
"name": "labelComponent",
|
|
1033
|
-
"type": "React.ReactElement<any>",
|
|
1034
|
-
"description": "The labelComponent prop specified the component that will be rendered when labels are defined\non ChartVoronoiContainer. If the labels prop is omitted, no label component will be rendered.",
|
|
1035
|
-
"defaultValue": "<ChartTooltip />"
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
"name": "labels",
|
|
1039
|
-
"type": "(point: any, index: number, points: any[]) => string",
|
|
1040
|
-
"description": "When a labels prop is provided to ChartVoronoiContainer it will render a label component\nrather than activating labels on the child components it renders. This is useful for\ncreating multi- point tooltips. This prop should be given as a function which will be called\nonce for each active point. The labels function will be called with the arguments point,\nindex, and points, where point refers to a single active point, index refers to the position\nof that point in the array of active points, and points is an array of all active points."
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
"name": "mouseFollowTooltips",
|
|
1044
|
-
"type": "boolean",
|
|
1045
|
-
"description": "When the mouseFollowTooltip prop is set on ChartVoronoiContainer, The position of the center of the tooltip\nfollows the position of the mouse."
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"name": "name",
|
|
1049
|
-
"type": "string",
|
|
1050
|
-
"description": "The name prop is used to reference a component instance when defining shared events."
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"name": "onActivated",
|
|
1054
|
-
"type": "Function",
|
|
1055
|
-
"description": "The onActivated prop accepts a function to be called whenever new data points are activated.\nThe function is called with the parameters points (an array of active data objects) and props\n(the props used by ChartVoronoiContainer)."
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
"name": "onDeactivated",
|
|
1059
|
-
"type": "Function",
|
|
1060
|
-
"description": "The onDeactivated prop accepts a function to be called whenever points are deactivated. The\nfunction is called with the parameters points (an array of the newly-deactivated data objects)\nand props (the props used by ChartVoronoiContainer)."
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "origin",
|
|
1064
|
-
"type": "{ x: number, y: number }",
|
|
1065
|
-
"description": "Victory components will pass an origin prop is to define the center point in svg coordinates for polar charts.\n\nNote: It will not typically be necessary to set an origin prop manually"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"name": "portalComponent",
|
|
1069
|
-
"type": "React.ReactElement<any>",
|
|
1070
|
-
"description": "The portalComponent prop takes a component instance which will be used as a container for children that should\nrender inside a top-level container so that they will always appear above other elements. ChartTooltip renders\ninside a portal so that tooltips always render above data. VictoryPortal is used to define elements that should\nrender in the portal container. This prop defaults to Portal, and should only be overridden when changing rendered\nelements from SVG to another type of element e.g., react-native-svg elements."
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"name": "portalZIndex",
|
|
1074
|
-
"type": "number",
|
|
1075
|
-
"description": "The portalZIndex prop determines the z-index of the div enclosing the portal component. If a portalZIndex prop is\nnot set, the z-index of the enclosing div will be set to 99."
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
"name": "radius",
|
|
1079
|
-
"type": "number",
|
|
1080
|
-
"description": "When the radius prop is set, the voronoi areas associated with each data point will be no larger\nthan the given radius. This prop should be given as a number."
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"name": "responsive",
|
|
1084
|
-
"type": "boolean",
|
|
1085
|
-
"description": "The responsive prop specifies whether the rendered container should be a responsive container\nwith a viewBox attribute, or a static container with absolute width and height.\n\n@default true"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
"name": "style",
|
|
1089
|
-
"type": "React.CSSProperties",
|
|
1090
|
-
"description": "The style prop specifies styles for your ChartContainer. Any valid inline style properties\nwill be applied. Height and width should be specified via the height\nand width props, as they are used to calculate the alignment of\ncomponents within the container. Styles from the child component will\nalso be passed, if any exist.\n\n@example {border: 1px solid red}"
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
"name": "tabIndex",
|
|
1094
|
-
"type": "number",
|
|
1095
|
-
"description": "The tabIndex prop specifies the description of the chart/SVG to assist with accessibility."
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
"name": "theme",
|
|
1099
|
-
"type": "object",
|
|
1100
|
-
"description": "The theme prop specifies a theme to use for determining styles and layout properties for a component. Any styles or\nprops defined in theme may be overwritten by props specified on the component instance.",
|
|
1101
|
-
"defaultValue": "getTheme(themeColor)"
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
"name": "themeColor",
|
|
1105
|
-
"type": "string",
|
|
1106
|
-
"description": "Specifies the theme color. Valid values are 'blue', 'green', 'multi', etc.\n\nNote: Not compatible with theme prop\n\n@example themeColor={ChartThemeColor.blue}"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"name": "voronoiBlacklist",
|
|
1110
|
-
"type": "string[]",
|
|
1111
|
-
"description": "The voronoiBlacklist prop is used to specify a list of components to ignore when calculating a\nshared voronoi diagram. Components with a name prop matching an element in the voronoiBlacklist\narray will be ignored by ChartVoronoiContainer. Ignored components will never be flagged as\nactive, and will not contribute date to shared tooltips or labels."
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
"name": "voronoiDimension",
|
|
1115
|
-
"type": "'x' | 'y'",
|
|
1116
|
-
"description": "When the voronoiDimension prop is set, voronoi selection will only take the given dimension into\naccount. For example, when dimension is set to “x”, all data points matching a particular x mouse\nposition will be activated regardless of y value. When this prop is not given, voronoi selection\nis determined by both x any y values."
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"name": "voronoiPadding",
|
|
1120
|
-
"type": "number",
|
|
1121
|
-
"description": "When the voronoiPadding prop is given, the area of the chart that will trigger voronoi events is\nreduced by the given padding on every side. By default, no padding is applied, and the entire range\nof a given chart may trigger voronoi events. This prop should be given as a number."
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
"name": "width",
|
|
1125
|
-
"type": "number",
|
|
1126
|
-
"description": "The width props specifies the width of the svg viewBox of the container\nThis value should be given as a number of pixels. If no width prop\nis given, the width prop from the child component passed will be used."
|
|
1127
|
-
}
|
|
1128
|
-
]
|
|
1129
|
-
}
|
|
1130
|
-
],
|
|
1131
|
-
"examples": [
|
|
1132
|
-
"Basic with right aligned legend",
|
|
1133
|
-
"Purple with bottom aligned legend",
|
|
1134
|
-
"Multi-color (ordered) with bottom-left aligned legend",
|
|
1135
|
-
"Single with right aligned legend",
|
|
1136
|
-
"Alerts timeline"
|
|
1137
|
-
]
|
|
1138
|
-
};
|
|
1139
|
-
pageData.liveContext = {
|
|
1140
|
-
Chart,
|
|
1141
|
-
ChartAxis,
|
|
1142
|
-
ChartBar,
|
|
1143
|
-
ChartGroup,
|
|
1144
|
-
ChartLabel,
|
|
1145
|
-
ChartThemeColor,
|
|
1146
|
-
ChartTooltip,
|
|
1147
|
-
ChartVoronoiContainer,
|
|
1148
|
-
VictoryZoomContainer,
|
|
1149
|
-
t_global_color_status_danger_100,
|
|
1150
|
-
t_global_color_status_info_100,
|
|
1151
|
-
t_global_color_status_warning_100
|
|
1152
|
-
};
|
|
1153
|
-
pageData.examples = {
|
|
1154
|
-
'Basic with right aligned legend': props =>
|
|
1155
|
-
<Example {...pageData} {...props} {...{"code":"import { Chart, ChartAxis, ChartBar, ChartGroup, ChartVoronoiContainer } from '@patternfly/react-charts/victory';\n\ninterface PetData {\n name: string;\n x: string;\n y: number;\n}\n\nexport const ChartBarRightAlignedLegend: React.FunctionComponent = () => {\n const catsData: PetData[] = [\n { name: 'Cats', x: '2015', y: 1 },\n { name: 'Cats', x: '2016', y: 2 },\n { name: 'Cats', x: '2017', y: 5 },\n { name: 'Cats', x: '2018', y: 3 }\n ];\n const dogsData: PetData[] = [\n { name: 'Dogs', x: '2015', y: 2 },\n { name: 'Dogs', x: '2016', y: 1 },\n { name: 'Dogs', x: '2017', y: 7 },\n { name: 'Dogs', x: '2018', y: 4 }\n ];\n\n const birdsData: PetData[] = [\n { name: 'Birds', x: '2015', y: 4 },\n { name: 'Birds', x: '2016', y: 4 },\n { name: 'Birds', x: '2017', y: 9 },\n { name: 'Birds', x: '2018', y: 7 }\n ];\n\n const miceData: PetData[] = [\n { name: 'Mice', x: '2015', y: 3 },\n { name: 'Mice', x: '2016', y: 3 },\n { name: 'Mice', x: '2017', y: 8 },\n { name: 'Mice', x: '2018', y: 5 }\n ];\n\n const legendData = [{ name: 'Cats' }, { name: 'Dogs' }, { name: 'Birds' }, { name: 'Mice' }];\n\n return (\n <div style={{ height: '250px', width: '600px' }}>\n <Chart\n ariaDesc=\"Average number of pets\"\n ariaTitle=\"Bar chart example\"\n containerComponent={\n <ChartVoronoiContainer labels={({ datum }) => `${datum.name}: ${datum.y}`} constrainToVisibleArea />\n }\n domain={{ y: [0, 9] }}\n domainPadding={{ x: [30, 25] }}\n legendData={legendData}\n legendOrientation=\"vertical\"\n legendPosition=\"right\"\n height={250}\n name=\"chart1\"\n padding={{\n bottom: 50,\n left: 50,\n right: 200, // Adjusted to accommodate legend\n top: 50\n }}\n width={600}\n >\n <ChartAxis />\n <ChartAxis dependentAxis showGrid />\n <ChartGroup offset={11}>\n <ChartBar data={catsData} />\n <ChartBar data={dogsData} />\n <ChartBar data={birdsData} />\n <ChartBar data={miceData} />\n </ChartGroup>\n </Chart>\n </div>\n );\n};\n","title":"Basic with right aligned legend","lang":"ts","className":""}}>
|
|
1156
|
-
|
|
1157
|
-
</Example>,
|
|
1158
|
-
'Purple with bottom aligned legend': props =>
|
|
1159
|
-
<Example {...pageData} {...props} {...{"code":"import {\n Chart,\n ChartAxis,\n ChartBar,\n ChartGroup,\n ChartThemeColor,\n ChartTooltip\n} from '@patternfly/react-charts/victory';\n\ninterface PetData {\n name: string;\n x: string;\n y: number;\n label: string;\n}\n\nexport const ChartBarBottomLegend: React.FunctionComponent = () => {\n const label =\n () =>\n ({ datum }) =>\n `${datum.name}: ${datum.y}`;\n\n const catsData: PetData[] = [\n { name: 'Cats', x: '2015', y: 1, label },\n { name: 'Cats', x: '2016', y: 2, label },\n { name: 'Cats', x: '2017', y: 5, label },\n { name: 'Cats', x: '2018', y: 3, label }\n ];\n\n const dogsData: PetData[] = [\n { name: 'Dogs', x: '2015', y: 2, label },\n { name: 'Dogs', x: '2016', y: 1, label },\n { name: 'Dogs', x: '2017', y: 7, label },\n { name: 'Dogs', x: '2018', y: 4, label }\n ];\n\n const birdsData: PetData[] = [\n { name: 'Birds', x: '2015', y: 4, label },\n { name: 'Birds', x: '2016', y: 4, label },\n { name: 'Birds', x: '2017', y: 9, label },\n { name: 'Birds', x: '2018', y: 7, label }\n ];\n\n const miceData: PetData[] = [\n { name: 'Mice', x: '2015', y: 3, label },\n { name: 'Mice', x: '2016', y: 3, label },\n { name: 'Mice', x: '2017', y: 8, label },\n { name: 'Mice', x: '2018', y: 5, label }\n ];\n\n const legendData = [{ name: 'Cats' }, { name: 'Dogs' }, { name: 'Birds' }, { name: 'Mice' }];\n\n return (\n <div style={{ height: '275px', width: '450px' }}>\n <Chart\n ariaDesc=\"Average number of pets\"\n ariaTitle=\"Bar chart example\"\n domainPadding={{ x: [30, 25] }}\n legendData={legendData}\n legendPosition=\"bottom\"\n height={275}\n name=\"chart2\"\n padding={{\n bottom: 75, // Adjusted to accommodate legend\n left: 50,\n right: 50,\n top: 50\n }}\n themeColor={ChartThemeColor.purple}\n width={450}\n >\n <ChartAxis />\n <ChartAxis dependentAxis showGrid />\n <ChartGroup offset={11}>\n <ChartBar data={catsData} labelComponent={<ChartTooltip constrainToVisibleArea />} />\n <ChartBar data={dogsData} labelComponent={<ChartTooltip constrainToVisibleArea />} />\n <ChartBar data={birdsData} labelComponent={<ChartTooltip constrainToVisibleArea />} />\n <ChartBar data={miceData} labelComponent={<ChartTooltip constrainToVisibleArea />} />\n </ChartGroup>\n </Chart>\n </div>\n );\n};\n","title":"Purple with bottom aligned legend","lang":"ts","className":""}}>
|
|
1160
|
-
|
|
1161
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1162
|
-
{`This demonstrates an alternate way of applying tooltips using data labels.`}
|
|
1163
|
-
</p>
|
|
1164
|
-
</Example>,
|
|
1165
|
-
'Multi-color (ordered) with bottom-left aligned legend': props =>
|
|
1166
|
-
<Example {...pageData} {...props} {...{"code":"import { Chart, ChartAxis, ChartBar, ChartGroup, ChartThemeColor } from '@patternfly/react-charts/victory';\nimport { VictoryZoomContainer } from 'victory-zoom-container';\n\ninterface PetData {\n name: string;\n x: string;\n y: number;\n}\n\nexport const ChartBarMultiColorOrdered: React.FunctionComponent = () => {\n const catsData: PetData[] = [\n { name: 'Cats', x: '2015', y: 1 },\n { name: 'Cats', x: '2016', y: 2 },\n { name: 'Cats', x: '2017', y: 5 },\n { name: 'Cats', x: '2018', y: 3 }\n ];\n\n const dogsData: PetData[] = [\n { name: 'Dogs', x: '2015', y: 2 },\n { name: 'Dogs', x: '2016', y: 1 },\n { name: 'Dogs', x: '2017', y: 7 },\n { name: 'Dogs', x: '2018', y: 4 }\n ];\n\n const birdsData: PetData[] = [\n { name: 'Birds', x: '2015', y: 4 },\n { name: 'Birds', x: '2016', y: 4 },\n { name: 'Birds', x: '2017', y: 9 },\n { name: 'Birds', x: '2018', y: 7 }\n ];\n\n const miceData: PetData[] = [\n { name: 'Mice', x: '2015', y: 3 },\n { name: 'Mice', x: '2016', y: 3 },\n { name: 'Mice', x: '2017', y: 8 },\n { name: 'Mice', x: '2018', y: 5 }\n ];\n\n const legendData = [{ name: 'Cats' }, { name: 'Dogs' }, { name: 'Birds' }, { name: 'Mice' }];\n return (\n <div style={{ height: '400px', width: '450px' }}>\n <Chart\n ariaDesc=\"Average number of pets\"\n ariaTitle=\"Bar chart example\"\n containerComponent={<VictoryZoomContainer />}\n domainPadding={{ x: [30, 25] }}\n legendData={legendData}\n legendPosition=\"bottom-left\"\n height={400}\n name=\"chart3\"\n padding={{\n bottom: 75, // Adjusted to accommodate legend\n left: 50,\n right: 100, // Adjusted to accommodate tooltip\n top: 50\n }}\n themeColor={ChartThemeColor.multiOrdered}\n width={450}\n >\n <ChartAxis />\n <ChartAxis dependentAxis showGrid />\n <ChartGroup offset={11} horizontal>\n <ChartBar data={catsData} />\n <ChartBar data={dogsData} />\n <ChartBar data={birdsData} />\n <ChartBar data={miceData} />\n </ChartGroup>\n </Chart>\n </div>\n );\n};\n","title":"Multi-color (ordered) with bottom-left aligned legend","lang":"ts","className":""}}>
|
|
1167
|
-
|
|
1168
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1169
|
-
{`This demonstrates zoom for both the x and y axis.`}
|
|
1170
|
-
</p>
|
|
1171
|
-
</Example>,
|
|
1172
|
-
'Single with right aligned legend': props =>
|
|
1173
|
-
<Example {...pageData} {...props} {...{"code":"import { Chart, ChartBar, ChartVoronoiContainer } from '@patternfly/react-charts/victory';\n\ninterface PetData {\n name: string;\n x: string;\n y: number;\n}\n\nexport const ChartBarSingleLegend: React.FunctionComponent = () => {\n const catsData: PetData[] = [\n { name: 'Cats', x: '2015', y: 1 },\n { name: 'Cats', x: '2016', y: 2 },\n { name: 'Cats', x: '2017', y: 5 },\n { name: 'Cats', x: '2018', y: 3 }\n ];\n\n const legendData = [{ name: 'Cats' }];\n return (\n <div style={{ height: '250px', width: '600px' }}>\n <Chart\n ariaDesc=\"Average number of pets\"\n ariaTitle=\"Bar chart example\"\n containerComponent={\n <ChartVoronoiContainer labels={({ datum }) => `${datum.name}: ${datum.y}`} constrainToVisibleArea />\n }\n domain={{ y: [0, 9] }}\n domainPadding={{ x: [30, 25] }}\n legendData={legendData}\n legendOrientation=\"vertical\"\n legendPosition=\"right\"\n height={250}\n name=\"chart4\"\n padding={{\n bottom: 50,\n left: 50,\n right: 200, // Adjusted to accommodate legend\n top: 50\n }}\n width={600}\n >\n <ChartBar data={catsData} />\n </Chart>\n </div>\n );\n};\n","title":"Single with right aligned legend","lang":"ts","className":""}}>
|
|
1174
|
-
|
|
1175
|
-
</Example>,
|
|
1176
|
-
'Alerts timeline': props =>
|
|
1177
|
-
<Example {...pageData} {...props} {...{"code":"import {\n Chart,\n ChartAxis,\n ChartBar,\n ChartGroup,\n ChartLabel,\n ChartTooltip,\n ChartVoronoiContainer\n} from '@patternfly/react-charts/victory';\nimport t_global_color_status_danger_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_danger_100';\nimport t_global_color_status_info_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_info_100';\nimport t_global_color_status_warning_100 from '@patternfly/react-tokens/dist/esm/t_global_color_status_warning_100';\n\ninterface AlertData {\n y0: Date;\n y: Date;\n severity: string;\n x?: number;\n fill?: string;\n}\n\nexport const ChartBarAlertsTimeline: React.FunctionComponent = () => {\n // Start = y0, end = y\n const alerts = [\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-09T02:30:00'), severity: 'danger' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-10T20:00:00'), severity: 'danger' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'danger' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-07T02:30:00'), severity: 'danger' },\n { y0: new Date('2024-08-07T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'danger' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-10T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'danger' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-07T02:30:00'), severity: 'danger' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'danger' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-10T20:00:00'), severity: 'info' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'warn' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-08T02:30:00'), severity: 'info' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'info' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-11T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'info' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-07T02:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-09T11:30:00'), y: new Date('2024-08-10T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'warn' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-08T02:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-11T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'warn' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-07T02:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-07T04:30:00'), y: new Date('2024-08-08T05:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-10T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-11T05:30:00'), y: new Date('2024-08-11T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'warn' }\n ],\n [\n { y0: new Date('2024-08-06T01:30:00'), y: new Date('2024-08-08T02:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-08T07:30:00'), y: new Date('2024-08-09T09:30:00'), severity: 'warn' },\n { y0: new Date('2024-08-10T05:30:00'), y: new Date('2024-08-11T20:00:00'), severity: 'warn' },\n { y0: new Date('2024-08-12T10:00:00'), y: new Date('2024-08-13T10:30:00'), severity: 'warn' }\n ]\n ];\n\n const legendData = [\n { name: 'Danger', symbol: { fill: t_global_color_status_danger_100.var } },\n\n { name: 'Info', symbol: { fill: t_global_color_status_info_100.var } },\n\n { name: 'Warning', symbol: { fill: t_global_color_status_warning_100.var } }\n ];\n\n const getSeverityColor = (severity) => {\n if (severity === 'danger') {\n return t_global_color_status_danger_100.var;\n } else if (severity === 'warn') {\n return t_global_color_status_warning_100.var;\n } else {\n return t_global_color_status_info_100.var;\n }\n };\n\n const formatDate = (date: Date, isTime: boolean) => {\n const dateString = date?.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n const timeString = date?.toLocaleTimeString('en-US', { hour12: false });\n return isTime ? `${dateString} ${timeString}` : dateString;\n };\n\n const getChart = (alert: AlertData[], index: number) => {\n const data: AlertData[] = [];\n\n alert?.map((datum) => {\n data.push({\n ...datum,\n x: alerts.length - index,\n fill: getSeverityColor(datum.severity)\n });\n });\n\n if (data?.length === 0) {\n return null;\n }\n return (\n <ChartBar\n data={data}\n key={index}\n style={{\n data: {\n fill: ({ datum }) => datum.fill,\n stroke: ({ datum }) => datum.fill\n }\n }}\n />\n );\n };\n\n return (\n <div style={{ height: '400px', width: '450px' }}>\n <Chart\n ariaDesc=\"Average number of pets\"\n ariaTitle=\"Bar chart example\"\n containerComponent={\n <ChartVoronoiContainer\n labelComponent={\n <ChartTooltip\n constrainToVisibleArea\n dx={({ x, x0 }) => -(x - x0) / 2} // Position tooltip so pointer appears centered\n dy={-5} // Position tooltip so pointer appears above bar\n labelComponent={<ChartLabel dx={-68} textAnchor=\"start\" />}\n orientation=\"top\" // Mimic bullet chart tooltip orientation\n />\n }\n labels={({ datum }) =>\n `Severity: ${datum.severity}\\nStart: ${formatDate(new Date(datum.y0), true)}\\nEnd: ${formatDate(new Date(datum.y), true)}`\n }\n />\n }\n domainPadding={{ x: [20, 20], y: [20, 20] }}\n legendData={legendData}\n legendPosition=\"bottom-left\"\n height={400}\n name=\"chart5\"\n padding={{\n bottom: 75, // Adjusted to accommodate legend\n left: 100,\n right: 50, // Adjusted to accommodate tooltip\n top: 50\n }}\n width={450}\n >\n <ChartAxis\n dependentAxis\n showGrid\n tickFormat={(t) => new Date(t).toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}\n tickValues={[\n new Date('2024-08-06T00:00:00'),\n new Date('2024-08-08T00:00:00'),\n new Date('2024-08-10T00:00:00'),\n new Date('2024-08-12T00:00:00')\n ]}\n />\n <ChartAxis\n axisLabelComponent={<ChartLabel angle={0} dy={-125} />}\n label=\"Incidents\"\n padding={{ top: 20, bottom: 60 }}\n style={{\n axis: {\n stroke: 'transparent'\n },\n ticks: {\n stroke: 'transparent'\n },\n tickLabels: {\n fill: 'transparent'\n }\n }}\n />\n <ChartGroup horizontal>{alerts.map((alert, index) => getChart(alert, index))}</ChartGroup>\n </Chart>\n </div>\n );\n};\n","title":"Alerts timeline","lang":"ts","className":""}}>
|
|
1178
|
-
|
|
1179
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1180
|
-
{`A gnatt-like chart using `}
|
|
1181
|
-
|
|
1182
|
-
<code {...{"className":"ws-code "}}>
|
|
1183
|
-
{`y`}
|
|
1184
|
-
</code>
|
|
1185
|
-
{` and `}
|
|
1186
|
-
|
|
1187
|
-
<code {...{"className":"ws-code "}}>
|
|
1188
|
-
{`y0`}
|
|
1189
|
-
</code>
|
|
1190
|
-
{` data properties for alert start/end dates`}
|
|
1191
|
-
</p>
|
|
1192
|
-
</Example>
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
const Component = () => (
|
|
1196
|
-
<React.Fragment>
|
|
1197
|
-
<AutoLinkHeader {...{"id":"introduction","headingLevel":"h2","className":"ws-title ws-h2"}}>
|
|
1198
|
-
{`Introduction`}
|
|
1199
|
-
</AutoLinkHeader>
|
|
1200
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1201
|
-
{`Note: PatternFly React charts live in its own package at `}
|
|
1202
|
-
<PatternflyThemeLink {...{"to":"https://www.npmjs.com/package/@patternfly/react-charts","className":""}}>
|
|
1203
|
-
{`@patternfly/react-charts`}
|
|
1204
|
-
</PatternflyThemeLink>
|
|
1205
|
-
{`!`}
|
|
1206
|
-
</p>
|
|
1207
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1208
|
-
{`The examples below are based on the `}
|
|
1209
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-chart/","className":""}}>
|
|
1210
|
-
{`Victory`}
|
|
1211
|
-
</PatternflyThemeLink>
|
|
1212
|
-
{` chart library, along with additional functionality, custom components, and theming for PatternFly. This provides a collection of React based components you can use to build PatternFly patterns with consistent markup, styling, and behavior.`}
|
|
1213
|
-
</p>
|
|
1214
|
-
<AutoLinkHeader {...{"id":"examples","headingLevel":"h2","className":"ws-title ws-h2"}}>
|
|
1215
|
-
{`Examples`}
|
|
1216
|
-
</AutoLinkHeader>
|
|
1217
|
-
{React.createElement(pageData.examples["Basic with right aligned legend"])}
|
|
1218
|
-
{React.createElement(pageData.examples["Purple with bottom aligned legend"])}
|
|
1219
|
-
{React.createElement(pageData.examples["Multi-color (ordered) with bottom-left aligned legend"])}
|
|
1220
|
-
{React.createElement(pageData.examples["Single with right aligned legend"])}
|
|
1221
|
-
{React.createElement(pageData.examples["Alerts timeline"])}
|
|
1222
|
-
<AutoLinkHeader {...{"id":"documentation","headingLevel":"h2","className":"ws-title ws-h2"}}>
|
|
1223
|
-
{`Documentation`}
|
|
1224
|
-
</AutoLinkHeader>
|
|
1225
|
-
<AutoLinkHeader {...{"id":"tips","headingLevel":"h3","className":"ws-title ws-h3"}}>
|
|
1226
|
-
{`Tips`}
|
|
1227
|
-
</AutoLinkHeader>
|
|
1228
|
-
<ul {...{"className":"pf-v6-c-content--ul pf-m-editorial ws-ul "}}>
|
|
1229
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1230
|
-
{`See Victory's `}
|
|
1231
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/faq","className":""}}>
|
|
1232
|
-
{`FAQ`}
|
|
1233
|
-
</PatternflyThemeLink>
|
|
1234
|
-
</li>
|
|
1235
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1236
|
-
{`For single data points or zero values, you may want to set the `}
|
|
1237
|
-
<code {...{"className":"ws-code "}}>
|
|
1238
|
-
{`domain`}
|
|
1239
|
-
</code>
|
|
1240
|
-
{` prop`}
|
|
1241
|
-
</li>
|
|
1242
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1243
|
-
<code {...{"className":"ws-code "}}>
|
|
1244
|
-
{`ChartLegend`}
|
|
1245
|
-
</code>
|
|
1246
|
-
{` may be used as a standalone component, instead of using `}
|
|
1247
|
-
<code {...{"className":"ws-code "}}>
|
|
1248
|
-
{`legendData`}
|
|
1249
|
-
</code>
|
|
1250
|
-
</li>
|
|
1251
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1252
|
-
{`The `}
|
|
1253
|
-
<code {...{"className":"ws-code "}}>
|
|
1254
|
-
{`theme`}
|
|
1255
|
-
</code>
|
|
1256
|
-
{` and `}
|
|
1257
|
-
<code {...{"className":"ws-code "}}>
|
|
1258
|
-
{`themeColor`}
|
|
1259
|
-
</code>
|
|
1260
|
-
{` props should be applied at the most top level component`}
|
|
1261
|
-
</li>
|
|
1262
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1263
|
-
{`Use `}
|
|
1264
|
-
<code {...{"className":"ws-code "}}>
|
|
1265
|
-
{`ChartGroup`}
|
|
1266
|
-
</code>
|
|
1267
|
-
{` to apply theme color scales and other properties to multiple components`}
|
|
1268
|
-
</li>
|
|
1269
|
-
</ul>
|
|
1270
|
-
<AutoLinkHeader {...{"id":"note","headingLevel":"h3","className":"ws-title ws-h3"}}>
|
|
1271
|
-
{`Note`}
|
|
1272
|
-
</AutoLinkHeader>
|
|
1273
|
-
<p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
|
|
1274
|
-
{`Currently, the generated documentation below is not able to resolve type definitions from Victory imports. For the
|
|
1275
|
-
components used in the examples above, Victory pass-thru props are also documented here:`}
|
|
1276
|
-
</p>
|
|
1277
|
-
<ul {...{"className":"pf-v6-c-content--ul pf-m-editorial ws-ul "}}>
|
|
1278
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1279
|
-
{`For `}
|
|
1280
|
-
<code {...{"className":"ws-code "}}>
|
|
1281
|
-
{`Chart`}
|
|
1282
|
-
</code>
|
|
1283
|
-
{` props, see `}
|
|
1284
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-chart","className":""}}>
|
|
1285
|
-
{`VictoryChart`}
|
|
1286
|
-
</PatternflyThemeLink>
|
|
1287
|
-
</li>
|
|
1288
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1289
|
-
{`For `}
|
|
1290
|
-
<code {...{"className":"ws-code "}}>
|
|
1291
|
-
{`ChartAxis`}
|
|
1292
|
-
</code>
|
|
1293
|
-
{` props, see `}
|
|
1294
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-axis","className":""}}>
|
|
1295
|
-
{`VictoryAxis`}
|
|
1296
|
-
</PatternflyThemeLink>
|
|
1297
|
-
</li>
|
|
1298
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1299
|
-
{`For `}
|
|
1300
|
-
<code {...{"className":"ws-code "}}>
|
|
1301
|
-
{`ChartBar`}
|
|
1302
|
-
</code>
|
|
1303
|
-
{` props, see `}
|
|
1304
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-bar","className":""}}>
|
|
1305
|
-
{`VictoryBar`}
|
|
1306
|
-
</PatternflyThemeLink>
|
|
1307
|
-
</li>
|
|
1308
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1309
|
-
{`For `}
|
|
1310
|
-
<code {...{"className":"ws-code "}}>
|
|
1311
|
-
{`ChartGroup`}
|
|
1312
|
-
</code>
|
|
1313
|
-
{` props, see `}
|
|
1314
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-group","className":""}}>
|
|
1315
|
-
{`VictoryGroup`}
|
|
1316
|
-
</PatternflyThemeLink>
|
|
1317
|
-
</li>
|
|
1318
|
-
<li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
|
|
1319
|
-
{`For `}
|
|
1320
|
-
<code {...{"className":"ws-code "}}>
|
|
1321
|
-
{`ChartVoronoiContainer`}
|
|
1322
|
-
</code>
|
|
1323
|
-
{` props, see `}
|
|
1324
|
-
<PatternflyThemeLink {...{"to":"https://formidable.com/open-source/victory/docs/victory-voronoi-container","className":""}}>
|
|
1325
|
-
{`VictoryVoronoiContainer`}
|
|
1326
|
-
</PatternflyThemeLink>
|
|
1327
|
-
</li>
|
|
1328
|
-
</ul>
|
|
1329
|
-
</React.Fragment>
|
|
1330
|
-
);
|
|
1331
|
-
Component.displayName = 'ComponentsChartsBarChart-VictoryDocs';
|
|
1332
|
-
Component.pageData = pageData;
|
|
1333
|
-
|
|
1334
|
-
export default Component;
|