Line Charts with D3

In this chapter, you are going to create a line chart with ticks and labels. D3 is not a charting framework like jqPlot. It does allow you, however, to add Scalable Vector Graphics (SVG) elements to a document, and by manipulating these elements, you can create any kind of visualization. Such flexibility enables you to build any type of chart, building it up brick by brick.

You’ll begin by looking at how to build the basic elements of a line chart using the D3 commands introduced in the previous chapter. In particular, you’ll be analyzing the concepts of scales, domains, and ranges, which you’ll be encountering ...

Get Beginning JavaScript Charts: With jqPlot, d3, and Highcharts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.