Contents
- Annotation
- Label
Having trouble getting help?
Contact Support
Contact Support
Annotation and Label
17 Feb 20221 minute to read
Annotation
In the circular progress bar, you can add any view to the center using the Content property in annotation.
For example, you can include add, start, or pause button to control the progress. You can also add an image that indicates the actual task in progress or add custom text that conveys how far the task is completed.
@(Html.EJS().ProgressBar("container").Type(Syncfusion.EJ2.ProgressBar.ProgressType.Circular).Value(60)
.TrackThickness(80).InnerRadius("190%").CornerRadius(Syncfusion.EJ2.ProgressBar.CornerType.Round)
.Minimum(0).Maximum(100).Animation(an => an.Enable(true).Delay(0).Duration(2000))
.Annotations(an => { an.Content("<div style='font-size:20px; font-weight:bold; color:#ffffff;fill:#ffffff'><span>60%</span></div>").Add(); }).Render())
Label
You can show the progress value in both linear and cicular progress bar using ShowProgressValue property.
@(Html.EJS().ProgressBar("container").Type(Syncfusion.EJ2.ProgressBar.ProgressType.Linear).Value(50)
.ShowProgressValue(true).TrackThickness(24).ProgressThickness(24)
.Minimum(0).Maximum(100)
.Render())