title: Highchart / Use global option into an external JS file
body: <p>I want to put dynamic information into my php page and keep my global option to an external JS files but "option" seem undefined:</p>
  
  <p><strong>External file:</strong></p>
  
  <pre><code>$(function () {
  
  var options = {
          chart: {
              rendedTo: 'barchart',
              type: 'column',
              width: 765
          },
          xAxis: {
              labels: {
                  rotation: -45,
                  align: 'right'
              }
          },
          yAxis: {
              min: 0,
              title: {
                  text: 'Nombre de sous-titres postés ce mois'
              }
          },
          legend: {
              enabled: false
          },
          tooltip: {
              formatter: function() {
                  var s = (this.y &gt; 1) ? 's' : '';
                  return '&lt;b&gt;'+ this.x +'&lt;/b&gt;&lt;br/&gt;'+
                       this.y+' sous-titre'+s+' posté'+s;
              }
          },
          series: [{
              name: 'Nombre d\'upload'
          }]
      }
  });
  </code></pre>
  
  <p>Then I put the building lines on my head tag:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $.getJSON('include/ajax/statistiquesMembreMensuel.json.php?id=1', function(data) {
              options.xAxis.categories = data[0];
              options.series[0].data = data[0];
              options.chart.title = "Nombre d\'upload mensuel effectués par le membre '.stripslashes($row['pseudo']).'";
              var chart = new Highcharts.Chart(options);
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>I need to put the how can I send the <code>$_GET['id']</code> information to the <code>getJSON</code> url if i put it into the .js file ?</p>
  
  <p>How can I edit the chart title after the chart has been loaded?</p>