chart & API