From 2c9064115d743ac22fef10c7b37c80af10329130 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 27 Sep 2018 21:28:18 +0200 Subject: Fix the position and scaling of the actual bars in the graph. --- room-schedule.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'room-schedule.rb') diff --git a/room-schedule.rb b/room-schedule.rb index 84864cc..40e94aa 100644 --- a/room-schedule.rb +++ b/room-schedule.rb @@ -64,7 +64,7 @@ module SVG field_count = 1 y_mod = (subbar_height / 2) + (font_size / 2) min,max,div = x_range - scale = (@graph_width + 2 * @font_size) / (max - min).to_f + scale = (@graph_width) / (max - min).to_f @data.each do |room| room[:data].each do |entry| x_start = (entry.start_time - min).to_f -- cgit v1.2.3