UNPKG

@wix/design-system

Version:

@wix/design-system

37 lines (33 loc) 1.48 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in tests ### data - type: arrayOf - description: Defines data points that construct spider web-like charts. Available properties for array items:<br />  - `value` - a number that represents value in chart<br />  - `label` - a label that represents value description around the chart<br />  - `color` - data point color.<br />  - `tooltipContent` - data point tooltip content ### scale - type: arrayOf - description: Defines a number of scale circles in the chart. Available properties for each scale:<br />  - `value` - a number representing scale<br />  - `suffix` - a string that represents value meaning (i.e. % or $) ### disabled - type: bool - description: Specifies whether graph is disabled ### width - type: number - description: Controls the width of a graph. Minimum width is 150 pixels. ### labelDistance - type: number - description: Controls label distance from a chart ### hoverIndex - type: number - description: Defines the index of a data point in hover state ### labelWidth - type: number - description: Defines maximum width of data labels ### onDataPointHover - type: func - 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.