Add checking if charts api works