p5.js Coding Tutorial | Habit Tracker (Data Visualization) @pattvira
p5.js Coding Tutorial | Habit Tracker (Data Visualization)  @pattvira
Uploaded January 2025 | Updated November 2026, 26 minutes ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Habit Tracker - Data Visualization Code: editor.p5js.org/pattvira/sketches/H9ZGHN8od
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— p5.js p5.Table: p5js.org/reference/p5/p5.Table
πŸ”— findIndex method: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex#syntax
πŸ”— The Ring of Time by He Yuxuan: whynotdesign.cc/The-Ring-of-Time-Typography-Calendar-2022

Timestamps:
0:00 Intro
0:31 Prepare the data
0:58 Upload and preload data into the sketch
2:06 Learn about the p5.Table class
5:31 Create a dates[] array to store all the year's dates
7:35 Create a runningDates[] array to store matching date indices
12:40 Draw a spiral
19:32 Add ellipses on the spiral using data from runningDates[]
22:46 Final touches
p5.js Coding Tutorial | Habit Tracker (Data Visualization)AI built 80% of my app. Here’s how I plan to design the rest.p5.js Coding Tutorial |  Color Changing Ball (If Statements)Introduction to Shaders: Shaping Functions (3/4)p5.js Coding Tutorial | Pixel Sortingp5.js Coding Tutorial | Oscillating Wavesp5.js Coding Tutorial | Interactive Vinyl Cover (Image Masking)Why Technical Literacy is Your Ultimate Defense Against AIp5.js Coding Tutorial | Donut Forget You Are Awesome 🍩 (aka coding DONUTS)p5.js Coding Tutorial |  Interactive Grid with Bouncing BallIntroduction to Shaders: A Beginners Guide (1/4)p5.js Coding Tutorial | String Art
Patt Vira |

p5.js Coding Tutorial | Habit Tracker (Data Visualization)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER