use params[:id] to determine chart displayed