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

Chapter 11, Bringing it All Together


  1. We used drawImage, which is part of the getContext method available in the HTML canvas element.

  2. We can use a plugin that will move the container divs off the screen. We can also hide or show the slides using animations so that they appear to fade in and out. If we change options of our chart while it is hidden, we will need to run replot after the plot is shown.

  3. It inherits from the line renderer.

  4. We created our tooltip div within the preInit method.

  5. We used a query string value to determine which division's data to render.

  6. We could create a line from the middle of the donut to the highlighted wedge using the canvas elements and include the tooltip data in the middle. We could create a method to determine the best color to use for each data label based on the method that generates the highlight colors.