CHAPTER 23

image

Candlestick Charts with D3

In this short but nonetheless important chapter, you will look at candlestick charts. This type of chart is based on a particular data format (OHLC, or open-high-low-close) that you have already dealt with when the jqPlot library was covered (see Chapter 12). With jqPlot, you had a special plug-in to deal with and represent such data in an appropriate manner; instead, with D3 you have to build all of the graphic elements one by one, and above all you will need to implement a parser to read OHLC data from an external file. Moreover, another nontrivial aspect that you need to solve is how to deal with date ...

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.