O'Reilly logo

Beginning JavaScript Charts: With jqPlot, d3, and Highcharts by Fabio Nelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required