Simple Bar Graphs with HTML and CSS Variables 0 ▲ ohhey[blog] 1 hour ago · Tech · hide I've been poking away at my student skill dashboard and the users index page really needed a facelift. I wanted to give a visual for their progress on the skills I've assessed so far in class with a little bar chart. I reached for some Python charting libraries which were super complicated, needed a bunch of dependency installs, and most required Javascript to render or to save a file on my filesystem. These progress bars change from time to time, so I wanted something more lightweight. After fiddling for a while, I decided I didn't have the brain power and just threw a completed / total column on the table. This lists all students - current and past - which is why the totals change from row to row. After a cup of tea, I realized that I can just use CSS custom properties to do this. We're working with grid layouts in my web development class, so that's a nice tie in for a real-world application. First, I updated my template file. I originally wanted to use data-* attributes and then… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town