O'Reilly logo

Learning jqPlot by Scott Gottreu

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 7, Stock Market Charts – OHLC and Candlestick Charts

  1. OHLC stands for open, high, low, close.
  2. A candlestick chart is composed of the body and the shadow. The shadow extending from the top of the body is called the wick, and the shadow extending from the bottom of the body is called the tail.
  3. In order to skip a value, we need to pass in the position of each value in the data array. For our OHLC chart, we have five values: date, opening price, high price, low price, and closing price. The date is in position 1, while the closing price is in position 5. If we want to show the opening price and the closing price separated by a line break, we will format our string as %2$.2f<br>%5$.2f.
  4. The cursor plugin contains the zoom functionality.
  5. The first ...

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