allow y_title and renderTo to be passed in on initialisation