Few concepts in statistics are as well understood as descriptive statistics: the mean (average), minimum, maximum, and quartiles. Often, it is possible to condense all of this data into one simple graph. In this recipe, we will plot all of these different data points using a box plot, occasionally referred to as a box-and-whisker plot graph.
To set up a basic page and install jQuery and Highcharts, refer to the Getting ready section of the Creating your first chart recipe in Chapter 1, Getting Started with Highcharts. In addition to these instructions, box plot charts are only available by using highcharts-more.js
. So, the following code can be used to ensure that we have included it on our page after we have included Highcharts:
<script src='./bower_components/highcharts/highcharts.js'></script>
<script src='./bower_components/highcharts/highcharts-more.js'></script>