Polyline and Circle annotations do not have text or labels by default. Instead, you can add this information to the annotation by modifying the appearance. There are some previous to help you get started with the code that you need to write to add the custom appearance. Please see them below:
Please let me know if you have any further questions.