in graph2
show different ball color according to data