motion-plot 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/lib/motion-plot/chart/bar_plot.rb +2 -2
- data/lib/motion-plot/chart/base.rb +1 -1
- data/lib/motion-plot/chart/line_plot.rb +1 -3
- data/lib/motion-plot/version.rb +1 -1
- metadata +1 -1
data/Gemfile
CHANGED
@@ -10,7 +10,7 @@ module MotionPlot
|
|
10
10
|
|
11
11
|
bar_x = CPDBarInitialX
|
12
12
|
@data_hash = {}
|
13
|
-
horizontal_bar = (@orientation == "vertical") ? true : false
|
13
|
+
horizontal_bar = (@plot_options.bar[:orientation] == "vertical") ? true : false
|
14
14
|
@delegate_object = case @stacking
|
15
15
|
when "normal"
|
16
16
|
StackBarDelegate.new(self)
|
@@ -48,7 +48,7 @@ module MotionPlot
|
|
48
48
|
|
49
49
|
def animate(bar)
|
50
50
|
bar.anchorPoint = [0.0, 0.0]
|
51
|
-
scale_direction = (@orientation == "vertical") ? "transform.scale.x" : "transform.scale.y"
|
51
|
+
scale_direction = (@plot_options.bar[:orientation] == "vertical") ? "transform.scale.x" : "transform.scale.y"
|
52
52
|
scaling = CABasicAnimation.animationWithKeyPath(scale_direction)
|
53
53
|
scaling.fromValue = 0.0
|
54
54
|
scaling.toValue = 1.0
|
@@ -3,7 +3,7 @@ module MotionPlot
|
|
3
3
|
|
4
4
|
attr_reader :layer_hosting_view, :graph, :series, :plot_space, :major_grid_line_style, :plots, :xaxis, :yaxis, :title
|
5
5
|
|
6
|
-
attr_accessor :legend, :axes, :theme, :data_label, :
|
6
|
+
attr_accessor :legend, :axes, :theme, :data_label, :plot_options
|
7
7
|
|
8
8
|
def bootstrap(options)
|
9
9
|
options.each_pair {|key, value|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module MotionPlot
|
2
2
|
class Line < Base
|
3
3
|
|
4
|
-
attr_accessor :curve_inerpolation
|
5
|
-
|
6
4
|
def add_series
|
7
5
|
@series.keys.each_with_index do |name, index|
|
8
6
|
line = CPTScatterPlot.alloc.initWithFrame(CGRectNull)
|
@@ -16,7 +14,7 @@ module MotionPlot
|
|
16
14
|
line.dataLineStyle = line_style
|
17
15
|
line.dataSource = self
|
18
16
|
line.delegate = self
|
19
|
-
line.interpolation = CPTScatterPlotInterpolationCurved if(@curve_inerpolation)
|
17
|
+
line.interpolation = CPTScatterPlotInterpolationCurved if(@plot_options.line[:curve_inerpolation])
|
20
18
|
|
21
19
|
add_plot_symbol(line, @series[name].plot_symbol.symbol_for(line)) if(@series[name].plot_symbol)
|
22
20
|
|
data/lib/motion-plot/version.rb
CHANGED