You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use the fontawesome icons you also need to include the css file into your site.
21
20
21
+
Add an element to your Site with a unique id and an "container" arround it that controls the size of your circle statistic, here a example with bootstrap:
22
22
23
-
Add an element to your Site with a unique id an the data attributes that you need, for Example:
you can set the options easily as data attributes for Example: data-dimension="250"
40
-
41
46
| Option | Description | Type | Default |
42
47
| ------------- |:-------------:| -----:|-----:|
43
-
| dimension | is the height and width of the element | Pixel | 200px on 200px |
44
-
| text | will be displayed inside of the circle over the info element | string | - |
45
-
| info | will be displayed inside of the circle bellow the text element (can be empty if you don't want to show info text) | string | - |
46
-
| width | is the size of circle | Pixel | 15 |
47
-
| fontsize | is the font size for the text element | Pixel | 15 |
48
-
| percent | can be 1 to 100 | Pixel | integer | - |
49
-
| fgcolor | is the foreground color of the circle | RGB | #556b2f |
50
-
| bgcolor | is the background color of the cicle | RGB | #eee |
51
-
| fill | is the background color of the whole circle (can be empty if you don't want to set a background to the whole circle) | RGB | - |
52
-
| type | full or half circle for example data-type="half" if not set the circle will be a full circle | string | full |
53
-
| total | If you want to display the percentage of a value for example you have 750MB Ram and at the moment are 350MB in use. You need to set data-total="750" and data-part="350" and the circle will show the percentage value 36,85% | Percent | - |
54
-
| part | - | Percent | - |
55
-
| border | Will change the styling of the circle. The line for showing the percentage value will be displayed inline or outline. | string | default |
56
-
| icon | Fontawesome icon class without the fa- before the class for example not fa-plus just plus | Font Awesome | - |
57
-
| iconsize | Will set the font size of the icon. | interger | - |
58
-
| iconcolor | Will set the font color of the icon. | RGB | - |
59
-
| animationstep | Will set the animation step, use 0 to disable animation, 0.5 to slow down, 2 to speed up, etc | interger | 1 |
60
-
| startdegree | is the degree to start animate fgcolor | interger | 0 |
61
-
| bordersize | set the width of the border | interger | 10 |
62
-
| delay | set animation delay | interger | 0 |
63
-
64
-
48
+
| foregroundColor | color of the foreground circle (no color add value 'none') | RGB or string | #3498DB |
49
+
| backgroundColor | color of the background circle (no color add value 'none') | RGB or string | #eee |
50
+
| fillColor | fill color of circle | RGB or string | none |
51
+
| foregroundBorderWidth | width of foreground circle border | int | 15 |
52
+
| backgroundBorderWidth | width of background circle border | int | 15 |
53
+
| percent | can be 1 to 100 | Pixel | integer | 75 |
54
+
| animation | if the circle should be animated initialy | int | 1 |
55
+
| animationStep | can be 1 to 100, how fast or slow the animation should be | int | 5 |
56
+
| percent | can be 1 to 100 | Pixel | integer | 75 |
0 commit comments