title: AMCharts How to color bullets by value?
body: <p>I am working with amcharts and I tried to color bullets in the chart by the values they have. So I created an array in javascript and passed the values from the database into it. Green is just a value for testing.   </p>
  
  <pre><code>   var chartData = [
        &lt;?php
           foreach($tmp as $row)
             {
               echo'{"Wahrscheinlichkeit":'.$row[3].',"Schaden":'.$row[4].',"value":1,"Beschreibung":"'.$row[2].'", "Color":"Green"},'; 
             }
        ?&gt;
     ];
  </code></pre>
  
  <p>Here I create the chart:</p>
  
  <pre><code> chart = new AmCharts.AmXYChart();
   chart.dataProvider = chartData;
  </code></pre>
  
  <p>Here I draw the chart:</p>
  
  <pre><code> var graph = new AmCharts.AmGraph();
              graph.valueField = "value"; // größe der Kugeln
              graph.xField = "Wahrscheinlichkeit";
              graph.yField = "Schaden";
              graph.maxBulletSize=20;
              graph.lineAlpha = 0;
              graph.bullet = "circle";
              graph.bulletColor= "[[Color]]";
              graph.balloonText = "Wahrscheinlichkeit:&lt;b&gt;[[x]]&lt;/b&gt; Schaden:&lt;b&gt;[[y]]&lt;/b&gt;&lt;br&gt;Beschreibung:&lt;b&gt; [[Beschreibung]]&lt;/b&gt;"
              chart.addGraph(graph);
  </code></pre>
  
  <p>At the point "bulletcolor" I try to get the color out of the array, but it doesn't work. </p>
  
  <pre><code>chart.write("chartdiv");
  </code></pre>
  
  <p>Looking forward getting tips and help from you</p>