added randomly assigning colours to the chart
merge