UNPKG

@wix/design-system

Version:

@wix/design-system

39 lines (36 loc) 1.47 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in tests ### data - type: DataPoint[] - description: Defines data points that construct spider web-like charts. Available properties for array items:<br /> &emsp;- `value` - a number that represents value in chart<br /> &emsp;- `label` - a label that represents value description around the chart<br /> &emsp;- `color` - data point color.<br /> &emsp;- `tooltipContent` - data point tooltip content ### scale - type: ScalePoint[] - description: Defines a number of scale circles in the chart. Available properties for each scale:<br /> &emsp;- `value` - a number representing scale<br /> &emsp;- `suffix` - a string that represents value meaning (i.e. % or $) ### disabled - type: boolean - description: Specifies whether graph is disabled ### width - type: number - description: Controls the width of a graph. Minimum width is 150 pixels. - default: 150 ### labelDistance - type: number - description: Controls label distance from a chart - default: 50 ### labelWidth - type: number - description: Controls label width in pixels - default: 100 ### hoverIndex - type: null | number - description: Defines the index of a data point in hover state ### onDataPointHover - type: () => void - description: Defines a callback function which is called every time user hovers over a data point. Includes all data point data as first argument and index as second.