Skip to content

Commit 192e025

Browse files
author
Patric Gutersohn
committed
2 parents b1c0482 + db4a8f0 commit 192e025

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Options
8080
| textY | vertical position of your info text | integer | null |
8181
| textX | horizontal position of your info text | integer | null |
8282
| textBelow | aligns string of "text" property centered below the circle | boolean | false |
83+
| multiPercentage | turns multiple bars on if set to 1 | integer | 1 |
84+
| percentages | array of percent, color and title for each circle | array | [] |
85+
| multiPercentageLegend | show a legend with title, color and percentage on the right | integer | 0 |
8386
| noPercentageSign | to hide the percentage sign | boolean | false |
8487
| replacePercentageByText | replace the percentage shown in the circle by text | string | null |
8588
| halfCircle | draw half circle see example bellow | boolean | false |
@@ -111,6 +114,38 @@ Example:
111114

112115
![full](https://raw.github.com/pguso/jquery-plugin-circliful/master/preview/half_circle.PNG)
113116

117+
Multiple Bars
118+
------------------
119+
120+
Example:
121+
122+
$("#test-circle").circliful({
123+
animation: 1,
124+
animationStep: 5,
125+
foregroundBorderWidth: 7,
126+
backgroundBorderWidth: 7,
127+
textSize: 28,
128+
textStyle: 'font-size: 12px;',
129+
textColor: '#666',
130+
multiPercentage: 1,
131+
percentages: [
132+
{'percent': 10, 'color': '#3180B8', 'title': 'Gryffindor' },
133+
{'percent': 30, 'color': '#4ADBEA', 'title': 'Ravenclaw' },
134+
{'percent': 50, 'color': '#49EBA8', 'title': 'Hufflepuff' },
135+
{'percent': 70, 'color': '#FFCA35', 'title': 'Slytherin' }
136+
],
137+
multiPercentageLegend: 1,
138+
replacePercentageByText: '',
139+
backgroundColor: '#eee',
140+
icon: 'f0d0',
141+
iconPosition: 'middle',
142+
iconColor: '#273B4E'
143+
});
144+
145+
<img width="450" src="https://github.com/pguso/jquery-plugin-circliful/raw/master/preview/preview5.png">
146+
147+
In action: https://jsfiddle.net/0c8qaqaj/
148+
114149
Use callback function
115150
------------------
116151
Get's fired on complete.

0 commit comments

Comments
 (0)