nnnick/Chart.js — pull request #62 by audaciousinister (2013-03-29 13:01:14+00:00)
Title: shorthand data input

I think the user should not have to worry about the colors and there should be a way to give input in an abbreviated way.
so how about if the inputs are in the following manner :-

1) for pieChart, polarArea and doughnut
data = [10,20,30,40,50]; // just that

2) for lineChart, barChart and radarchart
data = [["mon","tue","wed","thu","fri","sat","sun"],[10,20,30,40,50,60,70]
[70,60,50,40,30,20,10]];

the edits that i have made do not interfere with the main flow rather it just checks the type of the input data, if it is a shorthand format then the subroutine that i have defined adds some color to it and converts it into a usual data format.