We used
drawImage
, which is part of thegetContext
method available in the HTMLcanvas
element.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.It inherits from the line renderer.
We created our tooltip div within the
preInit
method.We used a query string value to determine which division's data to render.
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.
Learning jqPlot
By :
Learning jqPlot
By:
Overview of this book
Table of Contents (19 chapters)
Learning jqPlot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started
More Line Charts, Area Charts, and Scatter Plots
Bar Charts and Digging into Data
Horizontal and Stacked Bar Charts
Pie Charts and Donut Charts
Spice Up Your Charts with Animation, Tooltips, and Highlighting
Stock Market Charts – OHLC and Candlestick Charts
Bubble Charts, Block Plots, and Waterfalls
Showing Real-time Data with Our Charts
Beautifying and Extending Your Charts
Bringing it All Together
Answers
Index
Customer Reviews