Skip to content

Commit

Permalink
treat all separate named series the same
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown committed Oct 10, 2014
1 parent c587d32 commit 57f0636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chartnado/series/wrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def times(factor, precision: 2)
return with_precision(precision, factor.to_f * to_f) unless dimensions > 1
return self unless length > 0

if array_of_named_series? || array? && first.is_a?(Array)
if has_separate_named_series? || array? && first.is_a?(Array)
result = map { |(name, data)| [name, wrap(data) * factor] }
elsif hash?
result = to_a.reduce({}) do |hash, (key, value)|
Expand Down

0 comments on commit 57f0636

Please sign in to comment.