We will set
varyBarColor
totrue
to have each bar colored differently.We pass in a second
y
value, which is used to calculate the radius of our bubble. The fourth value in our data array is either a label or an object containing the label and an optional color.For the
formatString
option, we need to set the value to%'.2f
so that our chart will display the number to two decimal places.These two charts are similar to scatterplots.
We used the Enhanced Legend plugin to turn off the series in our block plot.
We can show how each division contributes to the overall revenue. We can also show the interaction of inventory buying against the budget along with the costs of the various product loss categories.
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