Use config time_range for canvas graphs

Canvas graphs, when used, don't follow the time_range configuration option, and only use the default set in Base.class.php: 86400