Implement method to convert chart name to id. (#58)