Root static functions of Sparkline Component
To get rounded rect path direction.
Parameter | Type | Description |
---|---|---|
r | Rect |
The rect dimensions. |
topLeft | number |
The radius of the top-left corner. |
topRight | number |
The radius of the top-right corner. |
bottomLeft | number |
The radius of the bottom-left corner. |
bottomRight | number |
The radius of the bottom-right corner. |
Returns string
Method to calculate the width and height of the sparkline.
Parameter | Type | Description |
---|---|---|
sparkline | Sparkline |
The Sparkline instance. |
Returns void
Method to create svg for sparkline.
Parameter | Type | Description |
---|---|---|
sparkline | Sparkline |
The Sparkline instance. |
Returns void
To find the element by id.
Parameter | Type | Description |
---|---|---|
id | string |
The id of the element to find. |
Returns Element
To remove element by id.
Parameter | Type | Description |
---|---|---|
id | string |
The id of the element to remove. |
Returns void
To find point within the bounds.
Parameter | Type | Description |
---|---|---|
x | number |
The x-coordinate of the point. |
y | number |
The y-coordinate of the point. |
bounds | Rect |
The bounding rectangle to check against. |
Returns boolean