From 137dc0d94bd771893b88e22628331786cb0c56df Mon Sep 17 00:00:00 2001 From: Erik Veijola Date: Tue, 28 Jul 2015 11:45:21 +0300 Subject: chart.rb: added method to set font size of Title object in chart Signed-off-by: Erik Veijola --- lib/axlsx/drawing/chart.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb index e7fcc9e8..de87b91a 100644 --- a/lib/axlsx/drawing/chart.rb +++ b/lib/axlsx/drawing/chart.rb @@ -128,6 +128,11 @@ module Axlsx end end + # The size of the Title object of the chart. + def title_size=(v) + @title.text_size = v unless v.to_s.empty? + end + # Show the legend in the chart # @param [Boolean] v # @return [Boolean] -- cgit v1.2.3