There are occasions where we don't know the relationship between our data points. In these instances, a scatter plot can show us the data, and patterns may emerge from the plotting of the points. This recipe will show us how we can display data using a scatter plot.
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.
We will also need to add some additional dependencies to our project in bower.json
, as shown in the following code:
{ "name": "highcharts-cookbook-chapter-10", "dependencies": { "jquery": "^1.9", "highcharts": "~3.0", "underscore": "~1.6.0" } }
Lastly, we need to include these files on our page as follows:
<script src='./bower_components/highcharts/highcharts.js'></script>
<script src='./bower_components/underscore/underscore.js'></script>