We may not always have a direct access to the data we want to work with; it may not be on our server or in a file we have access to. It may be a public URL on a different domain. Due to the way in which AJAX requests are handled, we can't use the exact same methods we used previously. There are still means to access cross-domain data, namely, JSON with Padding (JSONP).
Note
It is worth noting that we can only use JSONP for services that support JSONP. If we do not control the backend service or the backend service does not support JSONP, we will not be able to use this technique.
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. Refer to the steps as described in the Using AJAX for polling charts recipe discussed earlier in this chapter.