Move range functions from views to range
Rename frequency and curve data variables
Merge range analysis functions and rename django variables
Refactor range functions and variables
Use frequency histogram instead of values in distribution chart