/// <summary> /// Generates color shades to be displayed in a chart, by the specified base color and number of shades to generate. /// </summary> /// <param name="count">The number of elements in the chart to generate colors.</param> /// <param name="baseColorHex">The base color (in hex) to generate shades from.</param> /// <returns>Returns a string array of unique colors (RGB) generated by the specified parameters.</returns> public static string[] GenerateColorShades(int count, string baseColorHex) { return(ChartHelper.GenerateColorShades(count, new Color().FromHex(baseColorHex))); }
/// <summary> /// Generates different colors to be displayed in a chart, by the specified key names. /// </summary> /// <param name="keys">The key collection in a dictionary.</param> /// <returns>Returns a string array of unique colors (RGB), by the specified key names.</returns> public static string[] GenerateColorsByKeys(Dictionary <string, string> .KeyCollection keys) { return(ChartHelper.GenerateColorsByKeys(keys.ToArray())); }