Method: Gruff::Base#replace_colors
- Defined in:
- lib/gruff/base.rb
#replace_colors(color_list = []) ⇒ Object
Replace the entire color list with a new array of colors. You need to have one more color than the number of datasets you intend to draw. Also aliased as the colors= setter method.
Example:
replace_colors ['#cc99cc', '#d9e043', '#34d8a2']
274 275 276 |
# File 'lib/gruff/base.rb', line 274 def replace_colors(color_list=[]) @colors = color_list end |