change chart API for a lighter one