From ed8d37a2766e729d60c513198c103f46be7716aa Mon Sep 17 00:00:00 2001 From: Brad Stewart Date: Tue, 3 Mar 2015 16:01:13 -0600 Subject: Fix comments --- lib/axlsx/drawing/chart.rb | 5 ++--- 1 file 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 -- cgit v1.2.3