O'Reilly logo

Learning jqPlot by Scott Gottreu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we discussed when to use bar charts. We built a basic chart based on return options for products. After adding more data points to our returns chart, we learned how to rotate the ticks of our axes. We also learned how to add spaces around our categories as well as between each individual bar using barMargin and barPadding.

We created a bar chart showing multiple data series and a dropdown allowing us to change which trend line we displayed. We added a click event handler so that a new chart appeared with expanded data for the bar clicked on. We finished by adding hover event handlers to create a table of all the data points for the selected data series.

In the next chapter, we will look at stacked bar charts and horizontal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required