@wix/design-system
Version:
@wix/design-system
39 lines (36 loc) • 1.31 kB
Markdown
### dataHook
- type: string
- description: Applied as data-hook HTML attribute that can be used in the tests.
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### data
- type: StackedBarChartItem[]
- description: Chart data.
### tooltipTemplate
- type: (item: StackedBarChartItem) => ReactNode
- description: Tooltip template function.
### tooltipCommonProps
- type: TooltipCommonProps
- description: Props that modify the Tooltip created from text bar charts.
### width
- type: number
- description: Chart width (px).
- default: 900
### height
- type: number
- description: Chart height (px).
- default: 350
### margin
- type: { top: number; left: number; bottom: number; right: number; }
- description: Margin (px) for each side of the Chart. For example, in order to render larger number of digits at the yAxis, increase the left margin prop.
### yAxisTickFormat
- type: (rawValue: string, parsedValue: string) => string
- description: ##### Formats Y axis ticks
* `param` {string} `rawValue` - a raw value e.g. 10000
* `param` {string} `rawValue` - number formatted value, comma separated e.g. 10,000
* `return` {string} - the value to be shown as Y axis tick
### weight
- type: number
- description: No description