javascript - Zingchart last element keeps changing color and not matching with legend -
my zingchart's last element's color not match legend, , keeps on changing unlike others. ideas? else works good. though i'm parsing data through mysql database, how javascript looks like. my code: <script> var mydata = ["12","15","7","20","2","22","10","7","7","10","8","15","9"]; var mydata = mydata.map(parsefloat); var mylabels = ["general verbal insults","general beatings\/pushing","terrorizing\/threatening remarks","false gossip inflation (rumors)","discrimination","rough fighting","sexual utterance\/assaults","general exclusion","theft","racist utterance\/assaults","personal property damage","internet related (cyber)","other\/unspecified"]; window.onload=function(){ var color