limit chart function call