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 3. Bar Charts and Digging into Data

In the previous chapters, we learned how to create line charts and area charts. In this chapter, we will turn our attention to bar charts. We'll look at different options to format our axes and ticks. After mastering bar charts, we will create event handlers for various jqPlot events. With these event handlers, we will extend the functionality of our charts. In this chapter, we will specifically learn the following topics:

  • Build a basic chart based on return options for products

  • Add additional data points and style our chart to work with the increasing data

  • Create a bar chart showing multiple data series

  • Add a trend line to our chart with multiple data series to see how they are trending

  • Add an event handler to our bar chart to expand on the data selected from the chart

  • Revisit our stacked area chart and add an event handler to show all the data points in a table