CHAPTER 20

image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.