title: how to change the title in highcharts
body: <pre><code> $.ajax({
      type : type,
  
      data: form_data,
      url : geturl(a),
  
      dataType : 'json',
  
      error : function(result) {
           alert("error");
          // alert("Error occured!!");
  
      },
  
      success : function(result,data) 
      { 
      var chart = new Highcharts.Chart({
      chart: {
          renderTo: 'container',
          type: 'line',
              marginRight: 300,
              marginBottom: 75,
              marginLeft:50,
              marginTop:80
  
      },
      title: {
          marginTop:100,
          text:' True Power '
      },
      xAxis: {
  
          categories: result[0]
  
      },
  
      yAxis: {
          title: {
              text: 'Units Of Time'
          }
      },
  
  
  });
  
  }
  
      }) 
  
  
  
        }
  
  
  $(function(){
  $('#b').click( function(event) {
  event.preventDefault();
  alert("tgg");
  
   chart.setTitle = ({text:"Power Factor"});
  
   });
   });
  </code></pre>
  
  <p>when i click on this anchor tag the title should change, i have set a id="b" as below
  POWERFACTOR</p>
  
  
  
  <p></p>
  
  <p>but it gives e error saying chart not defined. could u help lik how to change the title and also the series</p>