@wix/design-system
Version:
@wix/design-system
38 lines (35 loc) • 1.11 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: chartData[]
- description: Chart data
### color
- type: string
- description: Sets the color of the sparkline
### width
- type: number
- description: Sets the width of the sparkline (pixels)
### height
- type: number
- description: Sets the height of the sparkline (pixels)
### highlightedStartingIndex
- type: number
- description: Indicates the starting index of the highlighted area. Default is 0
### highlightedEndingIndex
- type: number
- description: Indicates the ending index of the highlighted area. Default is the last one
### getTooltipContent
- type: (index: number) => ReactNode
- description: Tooltip content (JSX) getter function.
### onHover
- type: (index: number) => void
- description: callback when graph is hovered
### animationDuration
- type: number
- description: Sets the duration of the animation in milliseconds
- default: 300