Permalink
Browse files

fixing charting

  • Loading branch information...
nictrix committed Dec 1, 2011
1 parent f91a797 commit 2dfe53ced76381bd6b494d46d6b72e71a20c4cb8
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/highcharts.rb
View
@@ -59,16 +59,16 @@ def self.transform_x_axis(x_axis)
end
def self.difference_between_two_dates(start_time,end_time,x_axis)
x_axis = Chart.transform_x_axis(x_axis)
x_axis = Highcharts::Charting.transform_x_axis(x_axis)
return ((Date.strptime(end_time) - Date.strptime(start_time)) / x_axis).to_i
end
def self.create_array_of_dates(start_time,end_time,x_axis)
old_x_axis = x_axis
x_axis = Chart.transform_x_axis(x_axis)
x_axis = Highcharts::Charting.transform_x_axis(x_axis)
x_amount = Chart.difference_between_two_dates(start_time,end_time,x_axis)
x_amount = Highcharts::Charting.difference_between_two_dates(start_time,end_time,x_axis)
categories = Array.new
categories << Time.parse(start_time+" 00:00:00")

0 comments on commit 2dfe53c

Please sign in to comment.