forked from gil9red/SimplePyScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.py
More file actions
40 lines (35 loc) · 883 Bytes
/
Copy pathcommon.py
File metadata and controls
40 lines (35 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
# pip install quickchart.io
from quickchart import QuickChart
def get_chart() -> QuickChart:
qc = QuickChart()
qc.width = 500
qc.height = 300
qc.version = "2"
qc.background_color = ""
qc.config = {
"type": "doughnut",
"data": {
"datasets": [
{
"data": [43, 21],
"backgroundColor": ["rgb(173 225 232)", "rgb(33 170 184)"],
"borderWidth": 0,
},
],
},
"options": {
"cutoutPercentage": 80,
"legend": {
"display": "false",
},
"plugins": {
"datalabels": {
"display": "false",
},
},
},
}
return qc