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

Adding styles to our bar chart


We start thinking about how we can plot revenue and profit as a bar graph, when Calvin stops by. He takes a look at what we have. "Oh, I forgot. Sara sent a follow-up e-mail. There were a couple of categories that were left out of the spreadsheet. Let me forward that to you guys."

Calvin looks for the e-mail on his phone while he keeps talking, "Also, can you create a chart showing revenue grouped by product categories? She'll send over the data later this afternoon. OK, sent. I'll check back later," he says while walking out of the office.

We receive the second e-mail and open the updated spreadsheet. There are two new categories and their totals are much higher than the others. We can see why Sara is so concerned:

Damaged Item

$15,876.98

Defective Item

$26,078.41

Gift

$6,397.06

Not Correct Item

$12,876.60

No Longer Wanted/Needed

$41,654.67

Other / No Reason Given

$72,245.63

With all these categories on the x axis, we will...