Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding a text shape marker to test code

  • Loading branch information...
commit deb33a9bcfc7a86150f7544e658e25e73494fe2d 1 parent 0edba90
Deepak Jois deepakjois authored

Showing 1 changed file with 1 addition and 6 deletions. Show diff stats Hide diff stats

  1. +1 6 lib/test.rb
7 lib/test.rb
@@ -54,6 +54,7 @@
54 54 bc.bar_spacing = 2
55 55 bc.group_spacing = 10
56 56
  57 + bc.shape_marker :text, :text => "Test", :color => "000000" ,:data_set => 0, :data_point => 1, :size => 14
57 58 puts "\nBar Chart"
58 59 puts bc.to_url
59 60 end
@@ -97,27 +98,23 @@
97 98 puts sc.to_url
98 99 end
99 100
100   -
101 101 # Solid fill
102 102 line_chart_xy.fill :solid, :type => :background, :color => 'fff2cc'
103 103 line_chart_xy.fill(:solid, :type => :chart ,:color => 'ffcccc')
104 104 puts "\nLine Chart with Solid Fill"
105 105 puts line_chart_xy.to_url
106 106
107   -
108 107 # Gradient Fill
109 108 line_chart_xy.fill :gradient, :type => :background, :angle => 0, :colors => ['76A4FB','ffffff'], :offsets => [1,0]
110 109 line_chart_xy.fill :gradient, :type => :chart, :angle => 0, :colors => ['76A4FB','ffffff'], :offsets => [1,0]
111 110 puts "\nLine Chart with Gradient Fill"
112 111 puts line_chart_xy.to_url
113 112
114   -
115 113 # Stripes Fill
116 114 line_chart_xy.fill :stripes, :type => :chart, :angle => 90, :colors => ['76A4FB','ffffff'], :widths => [0.2,0.2]
117 115 puts "\nLine Chart with Stripes Fill"
118 116 puts line_chart_xy.to_url
119 117
120   -
121 118 # Range and Shape Markers
122 119 puts "\nLine Chart with range markers and shape markers"
123 120 GoogleChart::LineChart.new do |lc|
@@ -149,7 +146,6 @@
149 146 puts "\nBryan Error Condition"
150 147 puts lcxy.to_url
151 148
152   -
153 149 # Stacked Chart error
154 150 stacked = GoogleChart::BarChart.new
155 151
@@ -166,7 +162,6 @@
166 162 puts "\nStacked Chart with colored title"
167 163 puts stacked.to_url
168 164
169   -
170 165 # Encoding Error (Bar Chart)
171 166 bc = GoogleChart::BarChart.new do |chart|
172 167 chart.width = 800

0 comments on commit deb33a9

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