While sending a static chart is nice to give someone an idea about some dataset, they may want to explore the data themselves. In this case, we'll need to design our charts such that we can share them.
Note
The following technique will only work for non-local websites, that is, websites that are reachable either on a local network or over the Internet.
To set up a basic page and install jQuery and Highcharts, refer to the Getting ready section of the Creating your first chart recipe from Chapter 1, Getting Started with Highcharts.
To get started, perform the following steps:
Create the following
getParams
function as shown in the following code:var getParams = function() { var searchParams = window.location.search.substr(1), paramPairs = searchParams.split('&'), params = {}, i, temp; for (i=0; i < paramPairs.length; i++) { if (paramPairs[i].trim() === "") { continue; } ...