A little weekend side project using Compose canvas...
# compose-desktop
k
A little weekend side project using Compose canvas This is taking daily visit numbers to a Wikipedia page (Prime Number, MRNA, Sourdough) from for the last 4 years, and mapping them to compare yearly and monthly trends, as well as the breakdown by the day of the week So for example the first chart shows that throughout "regular" school year months, visits to the Prime Number page were mostly through the weekdays, and down on the weekends. Then a huge spike in late summer / early fall of 2020 as pretty much all schools went virtual, going into the rest of 2020 and the winter / spring semesters of 2021. And the drop off around Christmas week as everybody is off For MRNA - huge spike when this technology was announced as the basis for the upcoming vaccines in late 2020. And for sourdough - when everybody was baking their own bread right when the shutdowns started in March 2020.
👍🏻 1
🧐 3
❤️ 12
😶 2
👍🏼 1
😃 2
🙌🏻 1
👍 14
t
Wow. it looks really good. Statistically, what’s the name of this chart?
k
Not sure. I was implementing the visuals that I found over at https://observablehq.com/@yurivish/seasonal-spirals
👍🏻 1
👍 1
t
It's a very nice project but it's not Kotlin related nor is it really a question. A better place to post would be #random , #gui or #compose-ui.
d
These sort of posts are currently welcome in this channel while compose desktop is growing. I think everyone likes to see how well this is doing on desktop ATM.
8
t
Cool 😄
l
Nice work @Kirill Grouchnikov! I am struggling a bit taming complex text rendering (including HiDPI handling) with Compose Desktop and it seems that you are mastering it all in this visualization. Would you consider sharing the code to your “recreative” project? I am sure it would shed light on us all 😉
k
This is the
DrawScope
extension for drawing text along a path in Compose Desktop. This is the full code behind this chart. A full-dive article about it coming up shortly.