get three charts data from api