fix now treating all data points as absolute values
refactor put this stuff closer together
refactor chart index.html.erb