Book Image

Learning jqPlot

By : Scott Gottreu
Book Image

Learning jqPlot

By: Scott Gottreu

Overview of this book

Table of Contents (19 chapters)
Learning jqPlot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding tooltips to canvas overlay lines


We wrap up our work and prepare for a little bit of relaxing reading on Reddit when Calvin, Bob, and Roshan stop by. We show Roshan the first two charts, and then show off our colored candlestick chart. Roshan asks, "Can we just make the bigger chart a line chart? I'm afraid all the extra marks and what not will confuse users." We tell him that won't be a problem.

We also point out the price jump on February 15. "Right," Roshan says, "that was the day the quarterly earnings were released. Actually, some of the numbers were leaked over the weekend, and the stock jumped before the market opened."

Roshan stops and looks like he is thinking something over. "You added a line to one of the bar charts, showing a threshold. Can you do something similar to denote when the quarterly earnings were released?" We tell him we should be able to do that. "Excellent. I look forward to seeing it. Now, we'll get out of your hair."

We save the previous chart as a new file...