title: Assigning colors in highchart base on the result of javascript
body: <p>I need to assign the color of highchart base on the return value of javascript </p>
  
  <p>Here is my code...</p>
  
  <pre><code>var chart = new Highcharts.Chart({
  chart: {
      renderTo: 'container'
  },
  xAxis: {
      type: 'datetime'
  },
  
  series: [{
      name: 'John',
      color: '#EDF249',/*(function() {
              return '#EDF249';
          }),*/
      dashStyle: 'ShortDash',
      data: [
          [Date.UTC(2010, 0, 1), 29.9], 
          [Date.UTC(2010, 2, 1), 71.5], 
          [Date.UTC(2010, 3, 1), 106.4]
      ]
  },{
      name: 'Mary',
      color: '#FF0000',
      data: [
          [Date.UTC(2010, 0, 1), 60.9], 
          [Date.UTC(2010, 1, 1), 40.5],
          [Date.UTC(2010, 2, 1), 90.0], 
          [Date.UTC(2010, 3, 1), 80.4]
      ]
  }]
  });
  </code></pre>
  
  <p>if I will directly assign the color it will work but if I will assign the color base on the return value of javascript it's not working... any help</p>