Category: chart

A Handmade SVG Bar Chart (featuring some SVG positioning gotchas)

Let’s take a look at some things I learned about positioning elements within SVG that I discovered whilst making a (seemingly) simple bar chart earlier this week. You don’t have much choice but to position things in SVG. SVG is a declarative graphics format, and what are graphics but positioned drawing inst...

Making Charts with CSS

There are many ways to make visual representations of data: bar charts, line graphs, scatter diagrams, sparklines… not to mention the many ways in which you can implement them on the web. In this post I’ll be looking at plain CSS methods for styling data. But before we take a look at some examples, I think...