diff options
| author | Randy Morgan <[email protected]> | 2012-07-18 08:50:43 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-18 08:50:43 +0900 |
| commit | 51ec0287e61e4c65e6312d041869ccd9a9538c84 (patch) | |
| tree | d6b78662995448a7f16c826432917c28fc45f0cb /lib/axlsx/drawing/pie_3D_chart.rb | |
| parent | f6cf8b9ffd4e1f8c25b3237cc529bc657c52e32f (diff) | |
| download | caxlsx-51ec0287e61e4c65e6312d041869ccd9a9538c84.tar.gz caxlsx-51ec0287e61e4c65e6312d041869ccd9a9538c84.zip | |
#113 implement data labels for pie charts
Diffstat (limited to 'lib/axlsx/drawing/pie_3D_chart.rb')
| -rw-r--r-- | lib/axlsx/drawing/pie_3D_chart.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/axlsx/drawing/pie_3D_chart.rb b/lib/axlsx/drawing/pie_3D_chart.rb index 20e8cd62..059d4148 100644 --- a/lib/axlsx/drawing/pie_3D_chart.rb +++ b/lib/axlsx/drawing/pie_3D_chart.rb @@ -26,6 +26,7 @@ module Axlsx super(frame, options) @series_type = PieSeries @view_3D = View3D.new({:rot_x =>30, :perspective=>30}.merge(options)) + @d_lbls = nil end # Serializes the object @@ -36,6 +37,7 @@ module Axlsx str_inner << '<c:pie3DChart>' str_inner << '<c:varyColors val="1"/>' @series.each { |ser| ser.to_xml_string(str_inner) } + @d_lbls.to_xml_string(str) if @d_lbls str_inner << '</c:pie3DChart>' end end |
