[Solved] Highcharts column graph colors via sql data


And I had finally figured out how to make it work

        colors: [

                <?php
                    $num_counts = count($count);
                    $on = 1;
                    foreach($count as $bit => $bit_counts)
                    {
                        if($bit == 'STEEL'){echo"'#FF9999'";}
                        else if($bit == 'STEEL CROWN'){echo"'#FF9999'";}
                        else if($bit == 'SLIM'){echo"'#9999FF'";}
                        else if($bit == 'KYMERA'){echo"'#FF2626'";}
                        else if($bit == 'HYBRID'){echo"'#FF2626'";}
                        else if($bit == 'EZC'){echo"'#FFFF26'";}
                        else if($bit == 'EZR'){echo"'#FFFF26'";}
                        else if($bit == 'EZB'){echo"'#FFFF26'";}
                        else if($bit == 'EZS'){echo"'#FFFF26'";}
                        else if($bit == 'RWD'){echo"'#FF9326'";}

                        if($on != $num_counts)
                        {
                            echo ",\n";
                        }
                        $on++;
                    }

?>

          ],

solved Highcharts column graph colors via sql data