summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/chart.rb
diff options
context:
space:
mode:
authorBrad Stewart <[email protected]>2015-03-03 16:01:13 -0600
committerBrad Stewart <[email protected]>2015-03-03 16:01:13 -0600
commited8d37a2766e729d60c513198c103f46be7716aa (patch)
tree075ea2a29e17b016ca0aa5de1d23751b591f121b /lib/axlsx/drawing/chart.rb
parentcaf6f54acd0b9f1cfbe2e34bb759031e5c387bb8 (diff)
downloadcaxlsx-ed8d37a2766e729d60c513198c103f46be7716aa.tar.gz
caxlsx-ed8d37a2766e729d60c513198c103f46be7716aa.zip
Fix comments
Diffstat (limited to 'lib/axlsx/drawing/chart.rb')
-rw-r--r--lib/axlsx/drawing/chart.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb
index fb96ed53..17106035 100644
--- a/lib/axlsx/drawing/chart.rb
+++ b/lib/axlsx/drawing/chart.rb
@@ -11,6 +11,7 @@ module Axlsx
# @param [GraphicalFrame] frame The frame that holds this chart.
# @option options [Cell, String] title
# @option options [Boolean] show_legend
+ # @option options [Symbol] legend_position
# @option options [Array|String|Cell] start_at The X, Y coordinates defining the top left corner of the chart.
# @option options [Array|String|Cell] end_at The X, Y coordinates defining the bottom right corner of the chart.
def initialize(frame, options={})
@@ -138,9 +139,7 @@ module Axlsx
# @param [Integer] v must be between 1 and 48
def style=(v) DataTypeValidator.validate "Chart.style", Integer, v, lambda { |arg| arg >= 1 && arg <= 48 }; @style = v; end
- # Set the position of the chart's legend.
- # see ECMA Part 1 ยง21.2.2.196
- # @param [Symbol] v must be between 1 and 48
+ # @see legend_position
def legend_position=(v) RestrictionValidator.validate "Chart.legend_position", [:b, :l, :r, :t, :tr], v; @legend_position = v; end
# backwards compatibility to allow chart.to and chart.from access to anchor markers