UNPKG

@wix/design-system

Version:

@wix/design-system

37 lines (33 loc) 1.04 kB
### 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. ### width - type: number - description: Sets the width of the sparkline (pixels) ### height - type: number - description: Sets the height of the sparkline (pixels) ### data - type: arrayOf - description: Chart data ### color - type: string - description: Sets the color of the sparkline ### 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: func - description: Tooltip content (JSX) getter function. ### onHover - type: func - description: callback when graph is hovered ### animationDuration - type: number - description: Sets the duration of the animation in milliseconds