Module: GoogleChart::Color

Included in:
BarChart, LineChart
Defined in:
lib/google_chart/color.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



4
5
6
# File 'lib/google_chart/color.rb', line 4

def self.included(klass)
  klass.register!(:color)
end

Instance Method Details

#colorObject



12
13
14
# File 'lib/google_chart/color.rb', line 12

def color
  "chco=#{@color.join(',')}" if @color
end

#color=(color) ⇒ Object



8
9
10
# File 'lib/google_chart/color.rb', line 8

def color=(color)
  @color = [color].flatten
end