diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-09-27 21:28:18 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-09-27 21:28:18 +0200 |
commit | 2c9064115d743ac22fef10c7b37c80af10329130 (patch) | |
tree | 7152bf43c3931f1155f622a06cf27c47c94275de | |
parent | 8ee6f9d77d9d1cf28b8e436873c84aecc8205569 (diff) | |
download | ramaskrik-program-2c9064115d743ac22fef10c7b37c80af10329130.tar.gz ramaskrik-program-2c9064115d743ac22fef10c7b37c80af10329130.tar.bz2 ramaskrik-program-2c9064115d743ac22fef10c7b37c80af10329130.zip |
Fix the position and scaling of the actual bars in the graph.
-rw-r--r-- | room-schedule.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |