llms_get_donut( mixed $percentage, string $text = '', string $size = 'default', array $classes = array() )
Retrieve the HTML for a donut chart
Description Description
Note that this must be used in conjunction with some JS to initialize the chart!
Parameters Parameters
- $percentage
-
(Required) Percentage to display
- $text
-
(Optional) Text/caption to display (short). Default is empty string.
Default value: ''
- $size
-
(Optional) Size of the chart (mini, small, default, large). Default is 'default'.
Default value: 'default'
- $classes
-
(Optional) Additional custom css classes to add to the chart element. Default is empty array.
Default value: array()
Return Return
(string)
Source Source
File: includes/llms.functions.core.php
Changelog Changelog
Version | Description |
---|---|
3.9.0 | |
3.24.0 | Introduced. |