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 1, Getting Started


  1. The first part is composed of two pieces: the x and y axes. The other two parts are the grid and the ticks.

  2. We can create one object and store it in a variable, and we can use a jQuery selector to create another.

  3. In the data series, we set yaxis to y2axis.

  4. The first two options are outsideGrid and insideGrid. Both of these will place the legend within the plot object. The outside option will place the legend outside the object. With this option, the legend may overlap other elements on the page.

  5. The four main styles are circle, diamond, square, and x. The other three options are the filled in versions of circle, diamond, and square.

  6. We will use $%'d. The dollar sign is literal and the apostrophe tells jqPlot that we want the thousands place separator.