- #Check to see if multiple datasets, if so, fill them all!
- if options[:data].size > 1 && options[:data].all? {|i| i.is_a?(Array)}
+ #Check to see if multiple datasets, if so, fill them all!
+ #Sort by biggest first piece of data.
+ if options[:data].is_a?(Hash)
+ options[:data].sort {|a,b| b[1][0] <=> a[1][0]}.each do |dataset|
+ @graph.data(dataset[0], dataset[1])
+ end
+ #if each dataset nameless, will have only multiple arrays
+ elsif options[:data].size > 1 && options[:data].all? {|i| i.is_a?(Array)}