Skip to content

Commit abbd111

Browse files
committed
Update short url example
1 parent 21d8605 commit abbd111

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/short_url_example.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
import random
2+
13
from quickchart import QuickChart
24

35
qc = QuickChart()
46
qc.config = {
5-
"type": "bar",
7+
"type": "line",
68
"data": {
7-
"labels": ["Hello world", "Test"],
9+
"labels": list(range(0, 100)),
810
"datasets": [{
911
"label": "Foo",
10-
# Count from 0 to 100
11-
"data": list(range(0, 100)),
12+
"data": random.sample(range(0, 100), 100),
1213
}]
1314
}
1415
}

0 commit comments

Comments
 (0)