Change chart api