updateData to single charts, added removeAglorithm, changed ids from function name to functionname+index