Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding a text shape marker to test code

  • Loading branch information...
commit deb33a9bcfc7a86150f7544e658e25e73494fe2d 1 parent 0edba90
@deepakjois deepakjois authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/test.rb
View
7 lib/test.rb
@@ -54,6 +54,7 @@
bc.bar_spacing = 2
bc.group_spacing = 10
+ bc.shape_marker :text, :text => "Test", :color => "000000" ,:data_set => 0, :data_point => 1, :size => 14
puts "\nBar Chart"
puts bc.to_url
end
@@ -97,27 +98,23 @@
puts sc.to_url
end
-
# Solid fill
line_chart_xy.fill :solid, :type => :background, :color => 'fff2cc'
line_chart_xy.fill(:solid, :type => :chart ,:color => 'ffcccc')
puts "\nLine Chart with Solid Fill"
puts line_chart_xy.to_url
-
# Gradient Fill
line_chart_xy.fill :gradient, :type => :background, :angle => 0, :colors => ['76A4FB','ffffff'], :offsets => [1,0]
line_chart_xy.fill :gradient, :type => :chart, :angle => 0, :colors => ['76A4FB','ffffff'], :offsets => [1,0]
puts "\nLine Chart with Gradient Fill"
puts line_chart_xy.to_url
-
# Stripes Fill
line_chart_xy.fill :stripes, :type => :chart, :angle => 90, :colors => ['76A4FB','ffffff'], :widths => [0.2,0.2]
puts "\nLine Chart with Stripes Fill"
puts line_chart_xy.to_url
-
# Range and Shape Markers
puts "\nLine Chart with range markers and shape markers"
GoogleChart::LineChart.new do |lc|
@@ -149,7 +146,6 @@
puts "\nBryan Error Condition"
puts lcxy.to_url
-
# Stacked Chart error
stacked = GoogleChart::BarChart.new
@@ -166,7 +162,6 @@
puts "\nStacked Chart with colored title"
puts stacked.to_url
-
# Encoding Error (Bar Chart)
bc = GoogleChart::BarChart.new do |chart|
chart.width = 800

0 comments on commit deb33a9

Please sign in to comment.
Something went wrong with that request. Please try again.