Class: MotionPlot::Area
- Defined in:
- lib/motion-plot/chart/area_plot.rb
Instance Attribute Summary
Attributes inherited from Base
#axes, #data_label, #graph, #layer_hosting_view, #legend, #major_grid_line_style, #plot_options, #plot_space, #plots, #series, #theme, #title, #xaxis, #yaxis
Instance Method Summary collapse
Methods inherited from Line
#default_padding, #line_series, #plot_identifier
Methods inherited from Base
#add_axis_title, #add_chart_title, #add_legend, #add_plot_space, #add_plot_symbol, #add_xy_range, #bootstrap, #default_padding, #initWithOptions
Instance Method Details
#add_area_gradient(line) ⇒ Object
15 16 17 18 |
# File 'lib/motion-plot/chart/area_plot.rb', line 15 def add_area_gradient(line) line.areaFill = AreaGradient.new(@orientation).fill_with(line.dataLineStyle.lineColor) line.areaBaseValue = CPTDecimalFromString("0.0") end |
#add_series ⇒ Object
8 9 10 11 12 13 |
# File 'lib/motion-plot/chart/area_plot.rb', line 8 def add_series super @plots.each do |line| add_area_gradient(line) end end |