We need to switch their order from
[[x, y], [x, y], [x, y]]
to[[y, x], [y, x], [y, x]]
.We use the
canvasOverlay
option to create a horizontal or vertical line. Within this property, we must setshow
totrue
and create anobjects
array that holds the options for each line we will create.Under
tickOptions
, setshowGridline
tofalse
for the axis you want to remove grid lines from. If you want to remove both the grid lines and the ticks, you can setshow
tofalse
undertickOptions
.Within the
series
array, you will need to create a property calledpointLabels
. Within this object, you pass an array to thelabel
property. It is expected that there will be a label for each data point in the series.There are two main limitations of both charts. If there are too many data points and we keep the chart at a manageable size, the bars will be too small to see. If we increase the size of the chart to accommodate all the bars, the user will have to scroll back and forth, and this will make data comparison difficult.
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