Python Mini Project: Modern Charts
In this Python tutorial, we'll build a modern chart that displays historical prices for Bitcoin and gold. The chart is generated using the Flet framework and displays data points from pre-defined lists. The user can switch between the two lists by clicking on buttons. The chart has various customizable features such as tooltip, axes labels, and gradient below the line. Data used in the tutorial: POINTS = [ (0, 273.60), (1, 279.00), (2, 348.20), (3, 363.70), (4, 438.40), (5, 518.90), (6, 638.00), (7, 833.75), (8, 874.75), (9, 1096.50), (10, 1226.75), (11, 1577.00), (12, 1668.75), (13, 1200.00), (14, 1184.75), (15, 1061.25), (16, 1151.00), (17, 1257.25), (18, 1301.50), (19, 1493.25), (20, 1906.25), (21, 1753.90), (22, 1980.40), ] BTC = [ (9, 0.0008), (10, 0.07), (11, 0.95), (12, 13.44), (13, 817.36), (14, 314.24), (15, 430.05), (16, 963.74), (17, 13880.74), (18, 3843.52), (19, 7191.68), (20, 29001.19), (21, 39800.00), ] 1. Other Flet related tutorials can be found here: https://www.youtube.com/watch?v=JJCjAUmNXBs https://www.youtube.com/watch?v=HSiTkOPZmtc https://youtu.be/YG0SkSbcXwU 2. Enjoyed the video? Support the channel and get access to exclusive material! https://www.patreon.com/user?u=87176956 #python #tutorial #data
Download
0 formatsNo download links available.