Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
data_set can be set to -1 to have shape markers for every data point
Browse files Browse the repository at this point in the history
  • Loading branch information
robl committed May 10, 2011
1 parent 412b6cb commit c05d77c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/google_chart/modules/markers.rb
Expand Up @@ -75,8 +75,7 @@ def validate_shape_marker(marker)
marker.data_set >= 0

raise ArgumentError.new("Invalid data set value. Must be and integer less than #{@data[marker.data_set].length}") unless marker.data_point.is_a?(Integer) and
marker.data_point < @data[marker.data_set].length and
marker.data_point >= 0
marker.data_point < @data[marker.data_set].length
raise ArgumentError.new("Invalid priority. :priority must be either :low or :high") unless marker.priority == nil or
PRIORITY.keys.include?(marker.priority)

Expand Down

0 comments on commit c05d77c

Please sign in to comment.