protovis part 2: lines and labels

Introduction

Part one discussed how to make basic charts with Protovis JavaScript library. This tutorial explains how to add tick marks and labels to charts. Specifically, we're going to work with a bar chart but the same method could be used with line and area charts.

Tick marks and labels make it easier for readers to understand the data you are visualizing. But it's also important to make sure they don't overwhelm your graphic. Once you know how to set color and font styles, you can start making templates that you can reuse to make simple charts quickly.

Filed under: Data Visualization