code: function getRandomCssColor(cssColors, name) {
    var index = hashFromString(name || "") % cssColors.length;
    return cssColors[index];
  }
docs: Get a random color for the data based on the passed string (usually dataset name).
  @private
  @param  {String[]} cssColors Array of css colors, eg. ['#AAAAAA', 'red'].
  @param  {String} name Name to base the random choice on.
  @return {String} A css color, eg. 'red'.