update color chart
showData() now returns an array